summaryrefslogtreecommitdiff
path: root/src/utf8_iterator.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-02-22 23:56:52 +0000
committerMaxime Coste <mawww@kakoune.org>2017-02-23 00:03:32 +0000
commitd9abc2a156df03d264ec23c947cf7cf4c5a581ec (patch)
treed0ee6a0f275e37883fe617f7de462255109d22b4 /src/utf8_iterator.hh
parent7a143a7f7cf25bd2ef8b14a13d0bd31d20a12dfc (diff)
Refactor StringData and StringRegistry to remove need for purging
Purging unused strings could get pretty expensive with a lot of interned strings as it requiered iterating on all of them. Use a flag on the refcount of the StringData to see if the string is interned, and notify the StringRegistry in this case. This should improve the speed of editing big files with many words, such as the one described in #1195
Diffstat (limited to 'src/utf8_iterator.hh')
0 files changed, 0 insertions, 0 deletions