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(build): improve performance of default vendor chunk splitting #1690

Merged
merged 1 commit into from Jan 24, 2021

Conversation

finico
Copy link
Contributor

@finico finico commented Jan 24, 2021

After the default vendor chunk splitting was added, I ran into the build never completes and takes 100% of CPU.
I found out that function hasDynamicImporter is the bottleneck.
I decided to add a HashMap-based cache for module ids and now build is fast again.

@yyx990803
Copy link
Member

Ah nice, I was actually just thinking about this this morning. Thanks for tackling it.

@yyx990803 yyx990803 merged commit 0bed9c4 into vitejs:main Jan 24, 2021
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.

None yet

2 participants