Skip to content

feat: Add parallel iterators #10075

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

Merged
merged 17 commits into from
Mar 25, 2025
Merged

feat: Add parallel iterators #10075

merged 17 commits into from
Mar 25, 2025

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Feb 21, 2025

Description:

I introduced swc_par_iter, which uses swc_parallel for join operations. It's not perfect, but this PR looks like a good starting point. I decided to implement it in a separate crate than chili because I need the ability to switch parallelization library.

Copy link

changeset-bot bot commented Feb 21, 2025

⚠️ No Changeset found

Latest commit: d7718ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member Author

kdy1 commented Feb 21, 2025

Copy link

codspeed-hq bot commented Feb 21, 2025

CodSpeed Performance Report

Merging #10075 will degrade performances by 1.58%

Comparing kdy1/par-merge (d7718ec) with main (99018c5)

Summary

⚡ 3 improvements
❌ 1 regressions
✅ 148 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
serialization of serde 2.8 µs 2.8 µs +1.06%
es/lints/libs/terser 29.8 ms 29.4 ms +1.32%
es/minifier/libs/d3 458.5 ms 465.9 ms -1.58%
es/minifier/libs/terser 409.7 ms 401.3 ms +2.09%

Base automatically changed from kdy1/double-box to main February 23, 2025 09:54
@kdy1 kdy1 changed the title feat(swc_parallel): Add parallel iterators feat: Add parallel iterators Mar 25, 2025
@kdy1 kdy1 marked this pull request as ready for review March 25, 2025 16:04
@kdy1 kdy1 requested a review from a team as a code owner March 25, 2025 16:04
@kdy1 kdy1 enabled auto-merge (squash) March 25, 2025 16:05
@kdy1 kdy1 merged commit 3b775bf into main Mar 25, 2025
171 checks passed
@kdy1 kdy1 deleted the kdy1/par-merge branch March 25, 2025 16:34
@kdy1 kdy1 modified the milestones: Planned, v1.11.14 Mar 31, 2025
@swc-project swc-project locked as resolved and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant