Code to help me profile edn & parsley
Parsley is pretty slow. Using parsley to parse edn is pretty slow. Using
parsley to incrementally parse edn using the iterGrammar thing in
edn._parsley
is amazingly slow, and appears to perform worse than
linearly.
Slow in CPython and in PyPy.
gen-much-edn.py
: make some datanonstreaming.py
: get some timing information for the slow waystreaming.py
: get some timing information for the mega-slow wayprofile-edn.py
: simple thing to get profile information
edn.prof
: output of aprofile-edn.py
run I did one timeedn.grind
: same data asedn.prof
, but converted to kcachegrind formatraw-data.edn
: Not the raw data that was used withedn.prof
, but as similar as I could make it without leaking private information.