mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 23:05:24 +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`).