Karl Seguin 75b48ef503
std.mem: use indexOfScalarPos when indexOf is called where needle.len == 1
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`).
2023-10-09 16:50:16 +03:00
..
2023-09-25 15:53:05 -04:00
2023-09-19 09:37:31 -07:00
2023-09-19 09:37:31 -07:00
2023-09-22 15:08:51 -07:00
2023-07-31 03:49:21 -04:00