• Juho Snellman's avatar
    Optimize ticks_to_next_event a bit · 244e4ac2
    Juho Snellman authored
    - When on the core wheel, use time of first event in slot rather than
      walking through whole chain. (All guaranteed to have same time).
    - When on the core wheel and processing slot 0, only check outer wheel
      if slot 0 is empty. (Any events in slot 0 are guaranteed to be
      scheduled no later than anything on the outer wheel).
    244e4ac2
timer-wheel.h 15.1 KB