增大定时器内存池预留对象数

This commit is contained in:
duanhf2012
2022-01-20 17:25:35 +08:00
parent b54b9e40d5
commit 551ae6286b

View File

@@ -55,15 +55,15 @@ type Cron struct {
Timer Timer
} }
var timerPool = sync.NewPoolEx(make(chan sync.IPoolData,1000),func() sync.IPoolData{ var timerPool = sync.NewPoolEx(make(chan sync.IPoolData,102400),func() sync.IPoolData{
return &Timer{} return &Timer{}
}) })
var cronPool = sync.NewPoolEx(make(chan sync.IPoolData,1000),func() sync.IPoolData{ var cronPool = sync.NewPoolEx(make(chan sync.IPoolData,10240),func() sync.IPoolData{
return &Cron{} return &Cron{}
}) })
var tickerPool =sync.NewPoolEx(make(chan sync.IPoolData,1000),func() sync.IPoolData{ var tickerPool =sync.NewPoolEx(make(chan sync.IPoolData,102400),func() sync.IPoolData{
return &Ticker{} return &Ticker{}
}) })