You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add time limits in the slow algorithms (O(n^2) or more). Hunspell uses this in only 3 of all 12 algorithms. It does the time check only after it checks 100 candidates. If the time limit was exceeded, it stops, otherwise it goes on for another 100 attempts and checks the time limit again and so on.
Firstly, check the candidates of all 12 algorithms only as simple words, and only if there are no suggestions, rerun the same algorithms checking the candidates as compounds. This shuffling speeds up the case when there are suggestions, but it does not speed up the case when there are not any suggestions.
Limit the number of suggestions. Hunspell has a hard limit to 15 suggestions. From my experience this condition is very rarely hit, so it is the least effective. It is probably for some pathological cases.
The text was updated successfully, but these errors were encountered:
This basically solves issue #45. There are some more improvements that can
be made as described in the issue text, but those additional improvements
will be in the range of milliseconds.
Hunspell uses 3 techniques.
The text was updated successfully, but these errors were encountered: