mirror of
https://github.com/microsoft/edit.git
synced 2025-12-23 07:07:25 +00:00
The previous `memchr` loop had the fatal flaw that it would break out of the SIMD routines every time it hit a newline. This resulted in a throughput drop down to ~250MB/s on my system in the worst case. By writing SIMD routines specific to newline seeking, we can bump that up by >500x. Navigating through a 1GB of text now takes ~16ms independent of the contents. |
||
|---|---|---|
| .. | ||
| measurement.rs | ||
| mod.rs | ||
| tables.rs | ||
| utf8.rs | ||