summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahooinc.com>2023-05-03 14:45:19 +0200
committerBjørn Christian Seime <bjorncs@yahooinc.com>2023-05-03 14:45:19 +0200
commitd8d77d077cf9e064b30e8f0d555c740c329cbfb5 (patch)
treec34028c0a99a12e80455a6b18bf3cf97c356f187 /jdisc_core
parent8506ecab7210283da6aca51a20a258de76d8efc7 (diff)
Reduce to 2ms per slot
Diffstat (limited to 'jdisc_core')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java
index 355d6aee43a..457864929dc 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java
@@ -10,7 +10,7 @@ import java.util.Queue;
*/
class ScheduledQueue {
- public static final int MILLIS_PER_SLOT = 10;
+ public static final int MILLIS_PER_SLOT = 2;
public static final int NUM_SLOTS = 1024;
public static final int SLOT_MASK = NUM_SLOTS - 1; // bitmask to modulo NUM_SLOTS
public static final int ITER_SHIFT = Integer.numberOfTrailingZeros(NUM_SLOTS); // number of bits to shift off SLOT_MASK