- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for Cutover (0.13 seconds)
-
src/bytes/bytes_test.go
{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", utf8.MaxRune + 1, -1}, // Test the cutover to bytealg.Index when it is triggered in // the middle of rune that contains consecutive runs of equal bytes. {"aaaaaKKKK\U000bc104", '\U000bc104', 17}, // cutover: (n + 16) / 8 {"aaaaaKKKK鄄", '鄄', 17}, {"aaKKKKKa\U000bc104", '\U000bc104', 18}, // cutover: 4 + n>>4 {"aaKKKKKa鄄", '鄄', 18}, } for _, tt := range tests {Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
src/bytes/bytes.go
// Give up on IndexByte, it isn't skipping ahead // far enough to be better than Rabin-Karp. // Experiments (using IndexPeriodic) suggest // the cutover is about 16 byte skips. // TODO: if large prefixes of sep are matching // we should cutover at even larger average skips, // because Equal becomes that much more expensive. // This code does not take that effect into account.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Mar 12 17:56:55 GMT 2026 - 36.3K bytes - Click Count (0)