module: skip NODE_COMPILE_CACHE when policy is enabled#52577
Merged
nodejs-github-bot merged 3 commits intonodejs:mainfrom Apr 25, 2024
Merged
module: skip NODE_COMPILE_CACHE when policy is enabled#52577nodejs-github-bot merged 3 commits intonodejs:mainfrom
nodejs-github-bot merged 3 commits intonodejs:mainfrom
Conversation
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled.
Collaborator
Member
Author
|
huh there isn't a team for policy, it seems, so cc @nodejs/startup @nodejs/loaders @nodejs/security |
legendecas
reviewed
Apr 18, 2024
| return; | ||
| } | ||
| if (!options()->experimental_policy.empty()) { | ||
| Debug(this, |
Member
There was a problem hiding this comment.
Could this be a warning instead?
Member
Author
There was a problem hiding this comment.
The environment variable is designed to be as silent as possible. I don't think there's anything to warn - you don't get a speed up and that is all, your code will still work as intended. If you are using policy it's likely that you are already aware this is already leading to a slowdown for every module loaded due to all the checks required.
benjamingr
approved these changes
Apr 18, 2024
Member
benjamingr
left a comment
There was a problem hiding this comment.
thanks for following up with this!
richardlau
approved these changes
Apr 18, 2024
Collaborator
Member
Author
|
Updated the test to skip in no crypto builds because policy requires crypto to work. |
Collaborator
Collaborator
legendecas
approved these changes
Apr 22, 2024
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
|
Landed in 2231be6 |
aduh95
pushed a commit
that referenced
this pull request
Apr 29, 2024
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled. PR-URL: #52577 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
bmeck
pushed a commit
to bmeck/node
that referenced
this pull request
Jun 22, 2024
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled. PR-URL: nodejs#52577 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung
added a commit
to joyeecheung/node
that referenced
this pull request
Jan 23, 2025
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled. PR-URL: nodejs#52577 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung
added a commit
to joyeecheung/node
that referenced
this pull request
Jan 23, 2025
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled. PR-URL: nodejs#52577 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
joyeecheung
added a commit
to joyeecheung/node
that referenced
this pull request
Jan 23, 2025
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled. PR-URL: nodejs#52577 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled.