mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
增大定时器内存池预留对象数
This commit is contained in:
@@ -55,15 +55,15 @@ type Cron struct {
|
||||
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{}
|
||||
})
|
||||
|
||||
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{}
|
||||
})
|
||||
|
||||
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{}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user