ontodev / howl

HOWL: Humane OWL Format
http://try.humaneowl.com
BSD 2-Clause "Simplified" License
16 stars 0 forks source link

Re-implement manchester parser without `instaparse` #27

Open inaimathi opened 7 years ago

inaimathi commented 7 years ago

Profiling is pointing to instaparse as the main performance bottleneck. We should re-implement the existing insta 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.

jamesaoverton commented 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.