diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-05-03 14:45:19 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2023-05-03 14:45:19 +0200 |
commit | d8d77d077cf9e064b30e8f0d555c740c329cbfb5 (patch) | |
tree | c34028c0a99a12e80455a6b18bf3cf97c356f187 /jdisc_core | |
parent | 8506ecab7210283da6aca51a20a258de76d8efc7 (diff) |
Reduce to 2ms per slot
Diffstat (limited to 'jdisc_core')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java | 2 |
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 |