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

lexer: speedup findKeyword by first grouping keyword by length #2942

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

fridis
Copy link
Member

@fridis fridis commented Apr 20, 2024

This is an incremental improvement over PR #2941, only the last commit is new.

Instead of always searching through all keywords, search only those that have
a suitable length.

This speeds up building java.base.fum by about 5% on my machine.

Instead of always searching through all keywords, search only those that have
a suitable length.

This speeds up building java.base.fum by about 5% on my machine.
@michaellilltokiwa michaellilltokiwa merged commit bffbc52 into main Apr 22, 2024
3 checks passed
@maxteufel maxteufel deleted the speedup_findKeyword branch May 22, 2024 06:27
This pull request was closed.
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

Successfully merging this pull request may close these issues.

2 participants