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

开启“自动换行”时打开大文件速度非常慢。 #957

Open
softmgr opened this issue Jan 7, 2025 · 2 comments
Open

开启“自动换行”时打开大文件速度非常慢。 #957

softmgr opened this issue Jan 7, 2025 · 2 comments

Comments

@softmgr
Copy link

softmgr commented Jan 7, 2025

在关闭“自动换行”时,打开一个大文件非常快,且可以在语法高亮渲染未完成时将光标定位到文件尾(按组合键Ctrl+End)。
在开启“自动换行”后,打开大文件非常慢,且语法高亮渲染会一直卡住,直到语法高亮渲染完成后,才能进行编辑操作(例如按组合键Ctrl+End没有响应,需要等很久才能响应操作)。

测试方法:
打开或关闭“自动换行”后,再打开一个大文件(我测试了200MB的html文件),马上按组合键Ctrl+End。

@zufuliu
Copy link
Owner

zufuliu commented Jan 9, 2025

Commit bbe02d6 optimized HTML highlighting.
Word wrap is known to slow for large file.

@softmgr
Copy link
Author

softmgr commented Jan 9, 2025

Commit bbe02d6 optimized HTML highlighting.

Word wrap is known to slow for large file.

不是html引起的。即使是txt文件也是一样的。

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

No branches or pull requests

2 participants