Skip to content

Commit

Permalink
bigger default buffer pool
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Sep 7, 2014
1 parent 7162ea2 commit 8a02e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,10 +733,10 @@ func (cmd *baseCommand) end() {
////////////////////////////////////

// a custom buffer pool with fine grained control over its contents
// maxSize: 128
// initial bufferSize: 512 bytes
// maxSize: 128KiB
// initial bufferSize: 16 KiB
// maximum buffer size to keep in the pool: 128K
var bufPool = NewBufferPool(512, 512, 128*1024)
var bufPool = NewBufferPool(512, 16*1024, 128*1024)

// SetBufferPool can be used to customize the command Buffer Pool parameters to calibrate
// the pool for different workloads
Expand Down

0 comments on commit 8a02e43

Please sign in to comment.