Open inaimathi opened 7 years ago
The Manchester syntax is complex, recursive, and variable enough that it probably makes sense to keep using a parser library for it. Manchester expressions form a small part of most ontologies, so the perfomance hit should be small.
Profiling is pointing to
instaparse
as the main performance bottleneck. We should re-implement the existinginsta
grammars using regexes/string slicing directly (there are a lot of assumptions we can make about our input because of the way we're processing it).This task is for the
manchester
parser specifically. This is a lower priority for various reasons(), but should still probably be done at some point.