mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-02 08:05:37 +08: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:
@@ -2259,9 +2259,7 @@ func postProcessOptions(opts *Options) {
|
||||
theme.Spinner = boldify(theme.Spinner)
|
||||
}
|
||||
|
||||
if opts.Scheme != "default" {
|
||||
processScheme(opts)
|
||||
}
|
||||
processScheme(opts)
|
||||
}
|
||||
|
||||
func expectsArbitraryString(opt string) bool {
|
||||
|
||||
Reference in New Issue
Block a user