nschum / auto-dictionary-mode

Emacs: automatic dictionary switcher for flyspell
http://nschum.de/src/emacs/auto-dictionary/
28 stars 13 forks source link

Improve performance in large buffers #10

Closed tsdh closed 9 years ago

tsdh commented 9 years ago

I work on a very large tex document where guessing the language takes about five seconds which is kind of annoying. As far as I can see, auto dictionary tests all words in the buffer. It would be very nice if it could just stop after it is reasonably sure that it knows the language. I'm pretty sure that it should be pretty sure my document is in English after just testing two or three paragraphs.

tsdh commented 9 years ago

Sorry, this issue is not really about what I've said above. The dictionary guessing is fast. What is slow is that auto-dictionary calls flyspell-buffer in adict-change-dictionary-hook.