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

perf: use Set as Queue to solve the duplication #7233

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

JSerFeng
Copy link
Collaborator

@JSerFeng JSerFeng commented Jul 19, 2024

Summary

use Set as Queue to reduce duplication, this can significantly improve performance in UsedExports stage for large projects

before: 1.2 s

image

This pr: 0.7s

image

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@JSerFeng JSerFeng requested a review from ahabhgk July 19, 2024 09:09
@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: performance release: performance related release(mr only) labels Jul 19, 2024
Copy link

netlify bot commented Jul 19, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 3d2f3f1
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/669a381b7669760008831378

ahabhgk
ahabhgk previously approved these changes Jul 19, 2024
@JSerFeng JSerFeng enabled auto-merge (squash) July 19, 2024 09:14
@JSerFeng JSerFeng merged commit 379bdfe into main Jul 19, 2024
29 checks passed
@JSerFeng JSerFeng deleted the perf/used-exports branch July 19, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: performance release: performance related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants