Uh oh!
There was an error while loading. Please reload this page.
module: skip NODE_COMPILE_CACHE when policy is enabled - #52577
Conversation
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled.
nodejs-github-bot
commented
Apr 18, 2024
joyeecheung
commented
Apr 18, 2024
huh there isn't a team for policy, it seems, so cc @nodejs/startup @nodejs/loaders @nodejs/security |
| return; | ||
| } | ||
| if (!options()->experimental_policy.empty()) { | ||
| Debug(this, |
There was a problem hiding this comment.
Could this be a warning instead?
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
left a comment
There was a problem hiding this comment.
thanks for following up with this!
nodejs-github-bot
commented
Apr 22, 2024
joyeecheung
commented
Apr 22, 2024
Updated the test to skip in no crypto builds because policy requires crypto to work. |
nodejs-github-bot
commented
Apr 22, 2024
nodejs-github-bot
commented
Apr 22, 2024
nodejs-github-bot
commented
Apr 23, 2024
nodejs-github-bot
commented
Apr 23, 2024
nodejs-github-bot
commented
Apr 24, 2024
nodejs-github-bot
commented
Apr 25, 2024
nodejs-github-bot
commented
Apr 25, 2024
nodejs-github-bot
commented
Apr 25, 2024
nodejs-github-bot
commented
Apr 25, 2024
nodejs-github-bot
commented
Apr 25, 2024
Landed in 2231be6 |
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>
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>
It might be worth designing a policy for the compilation cache. For now, just skip the cache when policy is enabled.