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