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: a couple micro-optimizations to speed up dictionary loading #12825

Merged
merged 3 commits into from Nov 21, 2023

Conversation

donnerpeter
Copy link
Contributor

  1. sort by the whole entry without searching for separators first: WordStorage doesn't require strong lexicographic order (only something close to it), and the separators are anyway before any usual word characters
  2. avoid stream overhead when adding an entry

Description

1. sort by the whole entry without searching for separators first: WordStorage doesn't require strong lexicographic order (only something close to it), and the separators are anyway before any usual word characters
2. avoid stream overhead when adding an entry
Copy link
Contributor

@gf2121 gf2121 left a comment

Choose a reason for hiding this comment

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

Thanks for trying the radix sorter !

@donnerpeter donnerpeter merged commit c23b3b3 into apache:main Nov 21, 2023
5 checks passed
@donnerpeter donnerpeter deleted the naturalOrderNoStream branch November 21, 2023 07:05
donnerpeter added a commit that referenced this pull request Nov 27, 2023
…#12825)

* hunspell: a couple micro-optimizations to speed up dictionary loading

1. sort by the whole entry without searching for separators first: WordStorage doesn't require strong lexicographic order (only something close to it), and the separators are anyway before any usual word characters
2. avoid stream overhead when adding an entry

(cherry picked from commit c23b3b3)
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