mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-02 07:11:31 +00:00
micro optimization
This commit is contained in:
parent
6b07ad7ba4
commit
7c6fa2db57
1 changed files with 1 additions and 2 deletions
|
|
@ -315,8 +315,7 @@ func (fss *FileSystemScorer) worker(on_results chan int, worker_wait *sync.WaitG
|
|||
rp = utils.Filter(rp, func(r *ResultItem) bool { return r.IsMatching() })
|
||||
} else {
|
||||
for _, r := range rp {
|
||||
r.score.Set_length(0)
|
||||
r.score.Set_score(0)
|
||||
r.score &= 0b11111111111111111111111111111111 // only preserve index
|
||||
r.positions = nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue