Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very slow fontification with multiline strings #1674

Open
unhammer opened this issue Aug 16, 2019 · 0 comments
Open

very slow fontification with multiline strings #1674

unhammer opened this issue Aug 16, 2019 · 0 comments

Comments

@unhammer
Copy link
Contributor

unhammer commented Aug 16, 2019

After checking out newest git 56d67ee of haskell-mode, I do

$ make
$ wget https://raw.githubusercontent.com/wrengr/bytestring-trie/e149ccfb1124feb11aba04f3e2b1e5a557220e4c/src/Data/Trie/ArrayMapped/SparseArray.hs
$ emacs -Q -L . --eval "(progn (require 'haskell-mode) (find-file \"SparseArray.hs\") (eldoc-mode -1) (goto-line 248) (profiler-start 'cpu))"   SparseArray.hs

ie. open line 248 of a "big" (just 2331 lines) file, and edit the string to be a multiline one:

haskell-mode-multiline-slow

be patient – I'm typing a second " when it seems like the video has stopped ;)

I see slowdowns all over the place whenever I have \'s out of balance (sometimes it seems fontification gets into a bad state too with these and I have to reopen the file, though that may be a separate issue?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant