Increase chunkSize from 100 to 1000 to reduce lock contention
Before adoption: this commit came in with the history the project adopted, so no landing records it.
With chunkSize=100 and 10M items, 100K chunks cause ~300K mutex lock/unlock operations per search across 32 goroutines competing for a single sync.Mutex in ChunkCache. Increasing to 1000 reduces chunks to 10K, cutting contention overhead. Benchmarks on 10M items show 14-80% faster searches depending on query selectivity.
authored by Junegunn Choi · committed by Junegunn Choi · parent 09fe3a4 · Browse files · 1 file+1 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+1 added−1 removed
- other:+1 added−1 removed