Skip to content

timers: use ref counts to count timers

The additional objects that were getting added and deleted from the activeTimersMap object were slowing down the rest of the timers code, so this change falls back to using the ref counts to count the active timers inside process.getActiveResourcesInfo().

Fixes: https://github.com/nodejs/node/issues/41219

Signed-off-by: Darshan Sen darshan.sen@postman.com

cc @mscdex @nodejs/timers

Merge request reports

Loading