Use smaller default deque size. (#2488)

This commit is contained in:
Raja Subramanian authored and GitHub committed 2024-02-17 21:30:19 +05:30
1 parent 5ac5bd236a
commit e7dd03181c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func NewOpsQueue(name string, minSize uint, flushOnStop bool) *OpsQueue {
wake: make(chan struct{}, 1),
doneChan: make(chan struct{}),
}
oq.ops.SetMinCapacity(uint(utils.Min(bits.Len64(uint64(minSize-1)), 16)))
oq.ops.SetMinCapacity(uint(utils.Min(bits.Len64(uint64(minSize-1)), 7)))
return oq
}