async_hooks: refactor to avoid unsafe array iteration#37125
async_hooks: refactor to avoid unsafe array iteration#37125aduh95 merged 1 commit intonodejs:masterfrom
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. Details |
PR-URL: nodejs#37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
53c3c19 to
f8853dd
Compare
|
Landed in f8853dd |
PR-URL: #37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #37125 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
No description provided.