You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and many other timers benchmarks/benchmark configs saw double digit drops.
While having a public "get active requests"/"get active handles" API would be nice, I don't think it is worth this kind of penalty if we can't find some way to remedy the performance regressions.
for the Immediates. That way, we wouldn't have to run any extra code when the timers are added/removed. The results are going to be a little less accurate because these objects aren't updated at the right moment always (which is why I didn't do it that way in #40813) but we can always fix that in a separate PR.
Activity
RaisinTen commentedon Dec 17, 2021
To mitigate this, we can traverse
node/lib/internal/timers.js
Line 161 in c8f5dd6
node/lib/internal/timers.js
Line 426 in c8f5dd6
RaisinTen commentedon Dec 18, 2021
PR: #41231
Trott commentedon Dec 18, 2021
And if we can't fix it, we can always just leave it documented as an API limitation.
timers: use ref counts to count timers
timers: use ref counts to count timers
timers: use ref counts to count timers
timers: use ref counts to count timers
timers: use ref counts to count timers