-
-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make regex matcher timeout configurable
I use chroma to syntax highlight code snippets on my blog. While profiling my static blog generator, I noticed that a lot of time was being spent setting up the regex timeout watcher: https://alexbakker.me/u/g987wpgo1v.svg. I'm not exactly sure why it's spending so much time there, but disabling the timeout results in a 2x performance improvement in my testing.
- Loading branch information
1 parent
42e5421
commit ab29907
Showing
1 changed file
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters