mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-10-10 15:09:19 +08:00
use cache reduce malloc
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user