aboutsummaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-11 18:01:10 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-11 18:01:10 -0800
commit7c66a5c1216f334bfa29bddd7e4c3a451900efbb (patch)
treed1308f8bdbac9816d5192c6b21d2ebbe2692231f /benches
parentFix the cursor behavior at line endings. (diff)
downloadeditor-7c66a5c1216f334bfa29bddd7e4c3a451900efbb.tar.zst
Optimise line_offset for the ASCII case.
In most cases we really won't need the full binary search. We can check quickly for ASCII without ever printing anything, and fall back to binary search if we find any Unicode characters.
Diffstat (limited to 'benches')
0 files changed, 0 insertions, 0 deletions