diff --git a/src/Timer/Timers.php b/src/Timer/Timers.php index 70adc132..3a33b8ce 100644 --- a/src/Timer/Timers.php +++ b/src/Timer/Timers.php @@ -73,6 +73,11 @@ public function isEmpty() public function tick() { + // hot path: skip timers if nothing is scheduled + if (!$this->schedule) { + return; + } + // ensure timers are sorted so we can execute in order if (!$this->sorted) { $this->sorted = true; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy