Reuse char-scan invisibles detection in `highlight_invisibles` (#62715)
Follow-up to
https://github.com/zed-industries/zed/pull/62478#discussion_r3769810809
New bench results:
| corpus | old | new | speedup |
|---|---|---|---|
| ascii, no invisibles | 83 MB/s | 580 MB/s | **7.0x** |
| unicode, no invisibles | 88 MB/s | 442 MB/s | **5.0x** |
| sparse invisibles | 63 MB/s | 431 MB/s | **6.9x** |
| dense invisibles | 82 MB/s | 109 MB/s | 1.3x |
Release Notes:
- N/A
e0931d5a9dKirill Bulatov committed on 8/17/2026, 9:45:39 AM· committed by GitHubparentbf65fd4