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

profile *construction* of the parsers #25

Open
masklinn opened this issue Feb 2, 2025 · 0 comments
Open

profile *construction* of the parsers #25

masklinn opened this issue Feb 2, 2025 · 0 comments

Comments

@masklinn
Copy link
Collaborator

masklinn commented Feb 2, 2025

ua-parser/uap-python#253 indirectly reveals that constructing the parsers is much more expensive here than in re2, a difference factor of 4 was measured between the regex-based parser and the re2-based parser.

Parser construction performance is of a lower interest / relevance than actual resolution as I've been assuming parsers are constructed very rarely, but there might be low hanging fruits a bench would reveal. Although I would not be surprised if it was regex having high construction costs either.

@masklinn masklinn changed the title Benchmark *construction* of the parsers profile *construction* of the parsers Feb 2, 2025
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