node/lib/internal/bootstrap
Darshan Sen e35e893d26
src: speed up process.getActiveResourcesInfo()
This change reduces the number of calls that were crossing the JS-C++
boundary to 1 and also removes the need for calling Array::New()
multiple times internally and ArrayPrototypeConcat-ing the results
later on, thus improving performance.

Refs: https://github.com/nodejs/node/pull/44445#pullrequestreview-1220052837
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/46014
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2023-01-03 10:36:25 +00:00
..
switches bootstrap: optimize modules loaded in the built-in snapshot 2022-12-16 12:44:18 +01:00
browser.js bootstrap: include event_target into the built-in snapshot 2022-12-16 12:43:52 +01:00
loaders.js lib: disambiguate native module to builtin module 2022-12-09 05:28:58 +00:00
node.js src: speed up process.getActiveResourcesInfo() 2023-01-03 10:36:25 +00:00