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

parsing performance #477

Open
12089897411 opened this issue May 18, 2023 · 1 comment
Open

parsing performance #477

12089897411 opened this issue May 18, 2023 · 1 comment

Comments

@12089897411
Copy link

If there is too much text content, such as a few thousand lines of html, it will cause performance degradation, and even the program will not respond!
How can this performance problem be avoided?

@keith-hall
Copy link
Collaborator

Generally the solutions are:

  • only highlight up to 16k chars on a single line
  • use a faster regex library (i.e. try fancy-regex instead of oniguruma and see if it helps
  • turn off highlighting for large files

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