summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-12-06 17:51:28 +1100
committerMaxime Coste <mawww@kakoune.org>2022-12-06 17:51:28 +1100
commit93c50b3cd97ef78c678aa84010a5481ce0f11245 (patch)
tree22c616dafb1070f6c1e029818f6d0e58f20d2804 /src/string_utils.cc
parent933e4a599cfd3fc09edd67a024b8af08bbec7c01 (diff)
Avoid calculating atom length in DisplayLine::trim_from
Calculating the length of an atom means we need to decode every codepoint and compute its column width. This can prove quite expensive in trim_from as we can have full buffer lines, so on buffer with long lines we might have to go through megabytes of undisplayed data.
Diffstat (limited to 'src/string_utils.cc')
0 files changed, 0 insertions, 0 deletions