klahnakoski / mo-parsing

fork of pyparsing
MIT License
3 stars 2 forks source link

Profile by ParserElement #9

Closed klahnakoski closed 3 years ago

klahnakoski commented 4 years ago

Profiling is not useful because it has low (method level) resolution. It would be better to profile based on ParserElement; so the runtime for each pattern can be inspected, and maybe focus attention on slow-parsing patterns.

klahnakoski commented 3 years ago

added here https://github.com/klahnakoski/mo-parsing/commit/2125897686ee8123b9fb2df786588638d6735804#diff-9af18baf964abcd437849f6a9732463fa6a6a0cb1027ac0627b0f80f61f15c0b