Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory usage of cached matches for RegionsHighlighter
This adds a limitation that capture matching on regions only works if the regions start/end/recurse match is less than 65635 byte long. With this limitation we can reduce the RegexMatch struct size to 16 bytes instead of 32. This is still not good enough,but should slightly improve high memory usage as reported in #2454
- Loading branch information
Showing
1 changed file
with
32 additions
and
14 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