zed/crates/editor
Antonio Scandurra af4c4c7cf0 Speed up tab searching in TabMap::sync by looking for \t only
Instead of looking for `\n` as a stopping condition, we cap the range
we pass to `SuggestionSnapshot::chunks` to stop on the next line. This
makes character searching faster, because looking for a single character
uses `memchr`. Also, this avoids an extra conditional in a tight loop such
as the chunk scanning one contained in `TabMap::sync`.
2023-03-30 10:03:13 +02:00
..
src Speed up tab searching in TabMap::sync by looking for \t only 2023-03-30 10:03:13 +02:00
Cargo.toml Move postage crate version specification to workspace Cargo.toml 2023-03-21 11:26:13 -07:00