timers: use ref counts to count timers
requested to merge github/fork/RaisinTen/timers/use-timerListMap-and-outstandingQueue-to-count-timers into master
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