From a52867cb691be8184de3072197b7f44821601df2 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 7 Dec 2016 12:21:24 +0100 Subject: [PATCH] not necessary for a large buffer --- common/io/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/io/reader.go b/common/io/reader.go index 28e39bbc8..58a9edcf2 100644 --- a/common/io/reader.go +++ b/common/io/reader.go @@ -33,7 +33,7 @@ func NewAdaptiveReader(reader io.Reader) *AdaptiveReader { func (v *AdaptiveReader) Read() (*alloc.Buffer, error) { if v.highVolumn && v.largeBuffer.IsEmpty() { if v.largeBuffer == nil { - v.largeBuffer = alloc.NewLocalBuffer(256 * 1024) + v.largeBuffer = alloc.NewLocalBuffer(32 * 1024) } nBytes, err := v.largeBuffer.FillFrom(v.reader) if err != nil {