mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
When `std.mem.indexOf` is called with a single-item needle, use `indexOfScalarPos` which is significantly faster than the more general `indexOfPosLinear`. This can be done without introducing overhead to normal cases (where `needle.len > 1`).
4811 lines
178 KiB
4811 lines
178 KiB