fix comments for maxParkNanos and spinning
This commit is contained in:
parent
c60d20af32
commit
e2ccb014a9
1 changed files with 2 additions and 2 deletions
|
|
@ -96,11 +96,11 @@ private[akka] object TaskRunner {
|
|||
else if (idleCpuLevel == 10)
|
||||
new BusySpinIdleStrategy
|
||||
else {
|
||||
// spin between 100 to 10000 depending on idleCpuLevel
|
||||
// spin between 1200 to 8900 depending on idleCpuLevel
|
||||
val spinning = 1100 * idleCpuLevel - 1000
|
||||
val yielding = 5 * idleCpuLevel
|
||||
val minParkNanos = 1
|
||||
// park between 250 and 10 micros depending on idleCpuLevel
|
||||
// park between 220 and 10 micros depending on idleCpuLevel
|
||||
val maxParkNanos = MICROSECONDS.toNanos(280 - 30 * idleCpuLevel)
|
||||
new BackoffIdleStrategy(spinning, yielding, minParkNanos, maxParkNanos)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue