Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve perf of
mark_(replace|delete)_between
previously we were using `buffer_get_offset` to get both mark offsets (slow) and then `buffer_(replace|delete)` which in turn converted one of the offsets back into a bline and col before finally invoking `buffer_(replace|delete)_w_bline`. now we're calculating nchars via `mark_get_nchars_between` and calling `buffer_(replace|delete)_w_bline` more directly via `bline_(replace|delete)`). this could be made even more efficient if we had buffer functions that accepted two marks instead of a mark and an offset.
- Loading branch information