helix/helix-core
Blaž Hrastnik 11c3ba9350 Speed up ensure_next_boundary during render
This code:

    let start = ensure_grapheme_boundary_next(text, text.byte_to_char(start));
    let end = ensure_grapheme_boundary_next(text, text.byte_to_char(end));

Would convert byte to char index, but then internally immediately convert back
to byte index, operate on it, then convert it to char index.

This change reduces the amount of time spent in ensure_grapheme_boundary from
29% to 2%.
2022-01-23 16:04:12 +09:00
..
src Speed up ensure_next_boundary during render 2022-01-23 16:04:12 +09:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml syntax: Split parsing and highlighting 2022-01-23 16:00:24 +09:00