Skip to content

Commit 0df519a

Browse files
author
James Cor
committed
test
1 parent 2b22455 commit 0df519a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sql/byte_buffer.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type byteBuffer struct {
3030
var bufferPool = sync.Pool{
3131
New: func() any {
3232
return &byteBuffer{
33-
buf: make([]byte, bufCap),
33+
buf: make([]byte, 4096*128*64),
3434
}
3535
},
3636
}
@@ -66,8 +66,7 @@ func NewByteBufferManager() *ByteBufferManager {
6666
cur := bufferPool.Get().(*byteBuffer)
6767
cur.reset()
6868
return &ByteBufferManager{
69-
cur: cur,
70-
bufs: make([]*byteBuffer, 0),
69+
cur: cur,
7170
}
7271
}
7372

0 commit comments

Comments
 (0)