Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedup parsing #27

Open
karlicoss opened this issue Nov 1, 2020 · 0 comments
Open

speedup parsing #27

karlicoss opened this issue Nov 1, 2020 · 0 comments

Comments

@karlicoss
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant