summaryrefslogtreecommitdiff
path: root/rc/tools/python
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-08-10 20:58:31 +0100
committerMaxime Coste <mawww@kakoune.org>2022-08-20 11:02:59 +0200
commitc8c8051bd0341e3c9df933ee7c942d227ae13f00 (patch)
treebd699460bb28bac5234789e0b282032eb54c957c /rc/tools/python
parentca71d8997d6144fd7bc770ff458d469a989d576c (diff)
Refactor RegionsHighlighter to share regexes
Instead of storing regexes in each regions, move them to the core highlighter in a hash map so that shared regexes between different regions are only applied once per update instead of once per region Also change iteration logic to apply all regex together to each changed lines to improve memory locality on big buffers. For the big_markdown.md file described in #4685 this reduces initial display time from 3.55s to 2.41s on my machine.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions