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

font-lock-mode too slow #198

Closed
krux02 opened this issue Aug 15, 2018 · 4 comments
Closed

font-lock-mode too slow #198

krux02 opened this issue Aug 15, 2018 · 4 comments

Comments

@krux02
Copy link
Contributor

krux02 commented Aug 15, 2018

When editing big files, such as gl.nim scrolling blocks for several seconds until syntax highlighting has been resolved for the file. After syntax highlighting for that file has been resolved scrolling works, but editing in that file remains a bad experience so that I need to disable it in that file.

Arch Linux
emacs 26.1
no messages in *Messages* buffer.
not related to nimsuggest, company, flycheck or el-doc. It is all disabled.

@krux02
Copy link
Contributor Author

krux02 commented Aug 15, 2018

At this current point, I don't know how emacs does syntax highlighting, but I could profile the matchers, and it seems that most time is wasted in nim-pragma-matcher and nim-type-matcher.

@krux02
Copy link
Contributor Author

krux02 commented Sep 1, 2018

As a workaround disable font-lock-mode and then call M-x font-lock-fontify-buffer.
This doesn't fix anything, but at least it makes editing a bigger nim file possible without missing out in Nim syntax highlighting entirely.

@yuutayamada
Copy link
Contributor

@krux02 is this issue fixed by your PR?

@krux02
Copy link
Contributor Author

krux02 commented Oct 7, 2018

yes it is. Sorry I forgot to close this.

@krux02 krux02 closed this as completed Oct 7, 2018
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

2 participants