mirror of https://github.com/deavmi/eventy.git
Switch back to YIELD HoldOffMode for now (gives best performance)
We will have to investigate load average highness and ways to deal with it later
This commit is contained in:
parent
cc75eefa15
commit
28d64f799e
|
@ -184,9 +184,13 @@ public final class Engine : Thread
|
|||
/* Yield if a lock fails (prevent potential thread starvation) */
|
||||
defaultSettings.agressiveTryLock = false;
|
||||
|
||||
/* Make the event engine loop sleep (1) and for 200ms (2) (TODO: Adjust this) */
|
||||
defaultSettings.holdOffMode = HoldOffMode.SLEEP;
|
||||
defaultSettings.sleepTime = dur!("msecs")(50);
|
||||
// FIXME: Investigate ways to lower load average
|
||||
// /* Make the event engine loop sleep (1) and for 50ms (2) (TODO: Adjust this) */
|
||||
// defaultSettings.holdOffMode = HoldOffMode.SLEEP;
|
||||
// defaultSettings.sleepTime = dur!("msecs")(50);
|
||||
|
||||
/* Use yeilding for most responsiveness */
|
||||
defaultSettings.holdOffMode = HoldOffMode.YIELD;
|
||||
|
||||
/* Do not gracefully shutdown */
|
||||
defaultSettings.gracefulShutdown = false;
|
||||
|
|
Loading…
Reference in New Issue