GitbookIO / hunspell-spellchecker

Parse and use Hunspell dictionaries in Javascript
Apache License 2.0
77 stars 18 forks source link

spellchecker.suggest is slow #9

Open farzher opened 8 years ago

farzher commented 8 years ago

spellchecker.suggest('annaonymous') takes about 5 seconds to return suggestions I can get results from a remote API faster than that Is there anything I can do to speed up suggestions?

localjo commented 8 years ago

In my experience spellchecker.suggest is even slower. I'm using it to check a document, and when it checks non-word phrases like README.md, it takes several minutes, and then returns no suggestions. I'll take a look and see if I can improve the speed at all.