Performance issue in suggest() #31
Unanswered
philipchoy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I hope someone can help me with this performance issue when using suggest().
Here is a really simple example of using French dictionary to get suggestions of the word 'required'.
The next() took 2.5 minutes to return. I know this is Python but 2.5 min is way too long for practical purposes (I mean, at least for the Python app I'm working on). I'm not familiar with the algorithm, I just integrate and use the library. Did I do something wrong? What could/should be done to get suggestions under a reasonable time? Thank you!
Example:
from spylls.hunspell import Dictionaryfr_dict = Dictionary.from_files("fr")suggestions = fr_dict.suggest("required")next(suggestions)Beta Was this translation helpful? Give feedback.
All reactions