| ... | @@ -927,7 +927,7 @@ pub fn indexOfPos(comptime T: type, haystack: []const T, start_index: usize, nee | ... | @@ -927,7 +927,7 @@ pub fn indexOfPos(comptime T: type, haystack: []const T, start_index: usize, nee |
| 927 | if (needle.len > haystack.len) return null; | 927 | if (needle.len > haystack.len) return null; |
| 928 | if (needle.len == 0) return 0; | 928 | if (needle.len == 0) return 0; |
| 929 | | 929 | |
| 930 | if (!meta.trait.hasUniqueRepresentation(T) or haystack.len < 32 or needle.len <= 2) | 930 | if (!meta.trait.hasUniqueRepresentation(T) or haystack.len < 52 or needle.len <= 4) |
| 931 | return indexOfPosLinear(T, haystack, start_index, needle); | 931 | return indexOfPosLinear(T, haystack, start_index, needle); |
| 932 | | 932 | |
| 933 | const haystack_bytes = sliceAsBytes(haystack); | 933 | const haystack_bytes = sliceAsBytes(haystack); |