github.com/pgavlin/text@v0.0.0-20240419000839-8438d0a47805/internal/bytealg/index_arm64.go (about)

     1  // Copyright 2018 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package bytealg
     6  
     7  // Empirical data shows that using Index can get better
     8  // performance when len(s) <= 16.
     9  const MaxBruteForce = 16