orgparse icon indicating copy to clipboard operation
orgparse copied to clipboard

speedup parsing

Open karlicoss opened this issue 3 years ago • 0 comments

Not that it's slow, but making it even faster wouldn't hurt. Or at least setting up some proper benchmarks.

https://github.com/org-roam/test-org-files is a good source of test files

py-spy output from parsing a bunch of files:

output

Note that iterative parsing (using generators) makes it a bit misleading

_iparse_timestamps appears as a child call of _iparse_repeated_tasks

Tried replacing re with regex (https://pypi.org/project/regex), but didn't have any effect

karlicoss avatar Nov 01 '20 23:11 karlicoss