Skip to content

Commit

Permalink
Merge pull request #208 from FZambia/flate_write_pool_fix
Browse files Browse the repository at this point in the history
fix flate write pool size to work with best compression
  • Loading branch information
garyburd authored Jan 24, 2017
2 parents 0674c7c + ac61189 commit 4e4c8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
)

var (
flateWriterPools [maxCompressionLevel - minCompressionLevel]sync.Pool
flateWriterPools [maxCompressionLevel - minCompressionLevel + 1]sync.Pool
flateReaderPool = sync.Pool{New: func() interface{} {
return flate.NewReader(nil)
}}
Expand Down

0 comments on commit 4e4c8d0

Please sign in to comment.