mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-02 15:00:23 +00:00
af4c4c7cf0
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`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |