diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-10-06 10:16:20 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-10-06 10:16:20 +1000 |
| commit | e8ac3395f5df77dd37c0019fea41d4281e8e3781 (patch) | |
| tree | 5816888ab9269676ccf771113f98fde7c51fc017 /src/buffer_utils.hh | |
| parent | 81fa2ad300fac1b7a7a039f5e7c8d5b2d4f142d6 (diff) | |
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
Diffstat (limited to 'src/buffer_utils.hh')
0 files changed, 0 insertions, 0 deletions
