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

hunspell: speed up GeneratingSuggester by not deserializing non-suggestible roots #11859

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

donnerpeter
Copy link
Contributor

We discard entries with NOSUGGEST (and some other) flags anyway, so let's bail out of processing them at an earlier stage.
This speeds up suggestions for relatively short German words by about 20% for me.

Copy link
Contributor

@dweiss dweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although @rmuir is probably the Hunspell expert to ask for review.

@donnerpeter donnerpeter merged commit 05971b3 into apache:main Oct 19, 2022
@donnerpeter donnerpeter deleted the suggestibleMask branch October 28, 2022 19:50
donnerpeter added a commit that referenced this pull request Jan 13, 2023
@rmuir rmuir added this to the 9.5.0 milestone Jan 17, 2023
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.

None yet

3 participants