mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-25 09:23:50 -07:00
Improve search performance by pre-calculating character classes
This simple optmization can give more than 15% performance boost in some scenarios.
This commit is contained in:
@@ -9,6 +9,10 @@ import (
|
||||
"github.com/junegunn/fzf/src/util"
|
||||
)
|
||||
|
||||
func init() {
|
||||
Init("default")
|
||||
}
|
||||
|
||||
func assertMatch(t *testing.T, fun Algo, caseSensitive, forward bool, input, pattern string, sidx int, eidx int, score int) {
|
||||
assertMatch2(t, fun, caseSensitive, false, forward, input, pattern, sidx, eidx, score)
|
||||
}
|
||||
|
Reference in New Issue
Block a user