syntect
syntect copied to clipboard
parsing performance
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?
Generally the solutions are:
- only highlight up to 16k chars on a single line
- use a faster regex library (i.e. try
fancy-regexinstead ofonigurumaand see if it helps - turn off highlighting for large files