emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

Swoop freezes emacs with large files and long lines #79

Closed lbgaml closed 8 years ago

lbgaml commented 9 years ago

When editing a large latex file (50,000 words), with long lines (paragraphs wrapped by visual line mode) helm swoop freezes emacs requiring a forced quit. This is probably beyond the normal use-case but I find it incredibly useful to use.

sandos commented 8 years ago

I just opened a file of size 33800KiB, and it did take several tens of seconds to get a reaction from swoop. Each and every new character typed produces another long delay. It does get "fast" with few or no search hits.

I suspected long lines to be the culprit, but after replacing them with empty lines in Notepad++, the file is still similarly slow. At 20MiB it is a bit better. 13 MiB is still slow. At 8MiB performance gets livable, but still not good. At 4MiB I think the performance is OK.

It doesn't feel like performance is linear with respect to file-size.

lbgaml commented 8 years ago

Okay, thanks. Does that put the difficulty beyond the scope of the plugin?

lbgaml commented 8 years ago

I have found that a completely unrelated line my .emacs was causing this bug. Closing issue.

lufeihaidao commented 7 years ago

Similar issue in Emacs 25. Helm-swoop freezes emacs if I type too fast.

zarzen commented 7 years ago

Same issue when operating large file(1.2MB). Search function works fine, but after hit enter to jump that line, emacs freezed.