Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

Fdawgs
Copy link
Contributor

@Fdawgs Fdawgs commented Sep 15, 2023

Introduced as part of v16.0.0 and v14.18.0, this 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.

@Fdawgs
Copy link
Contributor Author

Fdawgs commented Sep 15, 2023

Bit stumped on the test failure. :|

@Fdawgs
Copy link
Contributor Author

Fdawgs commented Oct 28, 2023

Looks like tests are unhappy prior to this change anyway. Just updated the samples 54c404f, which have no bearing on anything, and the CI fails.

@Fdawgs Fdawgs closed this Oct 28, 2023
@Fdawgs Fdawgs deleted the perf/builtins branch October 28, 2023 14:34
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.

1 participant