reduce buffer size

This commit is contained in:
hebo 2019-12-10 16:44:17 +08:00
parent ee573a3bbc
commit 068871ea0c
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,7 @@ const (
var (
mqpp = NewMysqlQueryPiecePool()
localSliceBufferPool = NewSliceBufferPool("json cache", 1*1024*1024)
localSliceBufferPool = NewSliceBufferPool("json cache", 256*1024)
)
var commonBaseQueryPiece = &BaseQueryPiece{}

View File

@ -93,10 +93,9 @@ const (
// Identifier length limitations.
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
const (
// MaxMysqlPacketLen is the max packet payload length.
MaxMysqlPacketLen = 512 * 1024
MaxMysqlPacketLen = 128 * 1024
)
const (