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

Unusable in large files (slow syntax highlight) #6427

Closed
zuixalias opened this issue Mar 24, 2023 · 2 comments
Closed

Unusable in large files (slow syntax highlight) #6427

zuixalias opened this issue Mar 24, 2023 · 2 comments
Labels
R-duplicate Duplicated issue: please refer to the linked issue

Comments

@zuixalias
Copy link

zuixalias commented Mar 24, 2023

I had copy pasted a cpp code snippet in my rust project (it was a huge array, containing font data), helix was way to slow to do anything after that. (The file size after saving it was ~170kb)
Motions were fine (in all modes), but each key press took 4-5sec to register in insert mode (including some actions like undo, redo, deleting selection, deleting char, etc...)
(Note: No LSP or any other features were active, just plain helix)

It's not as bad if the array was of the same language, same as the lang of the file containg it. But still, even if it's the same language, the editing is noticably and visibly slow compared to other mainstream editors (it's all good with them) if the file is large (slow not just on an array but code in general).

Culprit i think is the syntax highlighting (could be parsing more text than which is visible)...as changing to lang text solves the issue.

(EDIT: It's rust's highlight that is slow compared to others, go too, etc...C 's is much faster, but visibly slow still)

@kirawi
Copy link
Member

kirawi commented Mar 24, 2023

Please use the bug template next time. This is a duplicate of #338 or #3072

@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 24, 2023
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Mar 24, 2023
@zuixalias
Copy link
Author

Damn, i am really sorry...will be more careful 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants