Skip to content

Conversation

@JohnTortugo
Copy link
Contributor

Can I please get some reviews of this patch to specialize for .. of loops on foreign objects? The idea explored here is that by adding this specialization some of the calls on the loop Iterator can be bypassed. In some of our benchmarks we obtained over 10% improvement with this change.

Tested on our internal benchmarks and with mx gate.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 15, 2025
@chumer chumer requested a review from woess November 20, 2025 16:07
@woess woess self-assigned this Dec 2, 2025
@woess
Copy link
Member

woess commented Dec 3, 2025

I've implemented an alternative version of this in #954 that avoids some of the problems (such as storing intermediate values in the node) and also works on JS arrays.
Maybe you'll want to give it a try on your benchmarks.

@JohnTortugo JohnTortugo closed this Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants