diff options
| author | Maxime Coste <mawww@kakoune.org> | 2023-12-26 20:55:47 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2023-12-26 21:21:01 +1100 |
| commit | 43e8aadcaad0036b6910d1a730e4f6c4c1ebd72c (patch) | |
| tree | e198b77f414649a2d53f2feb4a85344672d4cf62 /src/input_handler.cc | |
| parent | 68e73d8a2404b4570567a524f75f3fde141b64ab (diff) | |
Fix performance of diff-based reloading of buffers
It turns out diffing was pretty fast, but applying the diff was
sub-optimal as it was constantly inserting/erasing lines which
led to lots of unnecessary shifting. Fix this by manually tracking
a read/write iterator and only shifting when necessary (on keeps,
and inserts).
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions
