Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Cutover (0.03 sec)

  1. 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.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. 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 {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top