syntect icon indicating copy to clipboard operation
syntect copied to clipboard

parsing performance

Open 12089897411 opened this issue 2 years ago • 1 comments

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?

12089897411 avatar May 18 '23 06:05 12089897411

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

keith-hall avatar Jul 01 '23 18:07 keith-hall