Commit 3fdbfb00 authored by Kevin Atkinson's avatar Kevin Atkinson

Make the non key-only buffer size a constant.

parent 249d6c3b
......@@ -185,10 +185,11 @@ func (rb *ResultBuilder) Results() Results {
}
}
const NormalBufSize = 1
const KeysOnlyBufSize = 128
func NewResultBuilder(q Query) *ResultBuilder {
bufSize := 1
bufSize := NormalBufSize
if q.KeysOnly {
bufSize = KeysOnlyBufSize
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment