Skip to content

chore(perf): improve performance of iterator usage #4084

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

Closed

Conversation

JoviDeCroock
Copy link
Member

I realised why I didn't see performance differences in #4080 I was targeting the wrong branch 😅 This takes the transform used in #3691 and updates it to recent TS versions and adds one for Array destructuring.

The transform that takes on for..of will only optimize usage that isn't relying on iterator i.e. plain arrays vs Map.

I have been seeing issues running the benchmarks, looking into that atm.

Copy link

netlify bot commented May 8, 2024

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit ae3fc42
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/663b14ec089863000838131d
😎 Deploy Preview https://deploy-preview-4084--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JoviDeCroock
Copy link
Member Author

After getting the benchmarks to run, this seems resolved 😅 sorry for the PR's

@JoviDeCroock JoviDeCroock deleted the improve-perf-iterator-usage branch May 8, 2024 06:03
@yaacovCR
Copy link
Contributor

yaacovCR commented May 8, 2024

sorry for the PR's

Even if this didn’t pan out, it’s super useful that you investigated it. Thank you!

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.

2 participants