Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

jml/edn-profiling

Repository files navigation

edn-profiling

Code to help me profile edn & parsley

The problem

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.

The scripts

  • gen-much-edn.py: make some data
  • nonstreaming.py: get some timing information for the slow way
  • streaming.py: get some timing information for the mega-slow way
  • profile-edn.py: simple thing to get profile information

The data

  • edn.prof: output of a profile-edn.py run I did one time
  • edn.grind: same data as edn.prof, but converted to kcachegrind format
  • raw-data.edn: Not the raw data that was used with edn.prof, but as similar as I could make it without leaking private information.

About

Code to help me profile edn & parsley

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages