use cache reduce malloc

This commit is contained in:
hebo
2019-09-09 21:36:18 +08:00
parent 3294a0fc5f
commit 4086028217
12 changed files with 280 additions and 169 deletions

View File

@@ -3,6 +3,7 @@ package mysql
import (
"flag"
"fmt"
"github.com/zr-hebo/sniffer-agent/model"
"regexp"
)
@@ -17,6 +18,7 @@ var (
adminPasswd string
coverRangePool = NewCoveragePool()
localStmtCache = model.NewSliceBufferPool("statement cache", MaxMysqlPacketLen)
)
func init() {