timers: improve setImmediate() performance
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
- timers
Description of change
This commit avoids re-creating a new immediate queue object every time the immediate queue is processed. Additionally, a few functions are tweaked to make them inlineable.
These changes result in ~6-7% improvement in the existing setImmediate()
benchmarks and should help reduce GC work.