mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-23 21:05:08 +00:00
Reduces memory usage of `InsertionSlice` from 32 to 24 bytes, `Fragment` from 120 to 96 bytes by narrowing offsets that are relative to individual insertion operations from `usize` to `u32`. These offsets are bounded by the size of a single insertion, not the total buffer size, so `u32` is sufficient. To prevent any single insertion from exceeding `u32::MAX` bytes, both `Buffer::new_normalized` and `apply_local_edit`/`apply_remote_edit` now split large text insertions into multiple fragments via `push_fragments_for_insertion`. Release Notes: - N/A *or* Added/Fixed/Improved ... |
||
|---|---|---|
| .. | ||
| clock.rs | ||
| system_clock.rs | ||