Skip to content
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

chore(performance): optimize regressed for..of and array destructuring performance #4080

Closed
wants to merge 2 commits into from

Conversation

JoviDeCroock
Copy link
Member

@JoviDeCroock JoviDeCroock commented May 6, 2024

One of the issues we uncovered in #3648 is that upgrading to ES6 output maintained the for..of and array destructuring in our bundles which leads to a pretty considerable performance regression. This changes our build step to account for these less performant syntaxes and transforms them.

There is more low hanging fruit that can be optimised like the custom accumulatormap/... however starting with a quick win. The babel plugin also still leverages the iterator spec for non-array for loops, it optimises what it can

Fixes #3648

The performance implication would be higher if we did something akin to #3687

@JoviDeCroock JoviDeCroock marked this pull request as draft May 6, 2024 12:01
@JoviDeCroock
Copy link
Member Author

Looks like the performance improvements as seen in #3687 aren't reproducible with the babel plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant