-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
async_hooks: refactor to avoid unsafe array iteration #37125
Conversation
What's wrong with modern syntax? |
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/916/ (queued, will 404 until it starts). |
Nothing wrong with the syntax, the problem is with array iteration which relies on user-mutables methods: delete Array.prototype[Symbol.iterator];
const [a, b, c] = [1,2,3]; |
@aduh95 The benchmark didn't run properly. Here is the new link: |
The benchmark stops working after two minutes… I'm not sure if it's a problem with our CI or the benchmark itself. I'm splitting it into several runs to see if that helps: |
No significant perf improvements or regressions.
|
PR-URL: nodejs#37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
53c3c19
to
f8853dd
Compare
Landed in f8853dd |
PR-URL: #37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #37125 Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
No description provided.