Skip to content

perf: use node: prefix to bypass require.cache call for builtins#1470

Merged
RafaelGSS merged 1 commit intonodejs:mainfrom
Fdawgs:perf/prefix
Apr 19, 2025
Merged

perf: use node: prefix to bypass require.cache call for builtins#1470
RafaelGSS merged 1 commit intonodejs:mainfrom
Fdawgs:perf/prefix

Conversation

@Fdawgs
Copy link
Copy Markdown
Contributor

@Fdawgs Fdawgs commented Apr 19, 2025

Allows redundant require.cache calls to be bypassed for builtin modules, saving a few yoctoseconds.

See https://nodejs.org/api/modules.html#core-modules and discussion in nodejs/node repo regarding why require.cache calls are redundant for builtins.

@RafaelGSS RafaelGSS merged commit f95d494 into nodejs:main Apr 19, 2025
7 checks passed
@Fdawgs Fdawgs deleted the perf/prefix branch April 19, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants