-
Notifications
You must be signed in to change notification settings - Fork 472
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(core): improve cold startup performance by caching depended_modules
function in code splitter
#2294
Conversation
|
805f01a
to
70519c8
Compare
@hyf0 this has a better perf improvement, please take a look. |
70519c8
to
2b01ce5
Compare
2b01ce5
to
aa8cead
Compare
aa8cead
to
1ac3540
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the latency.
depended_modules
function in code splitter
…ules` function in code splitter (web-infra-dev#2294) perf(rspack_core): add cache to depended_modules in code splitter
Summary
Code splitting has a hot path on
depended_modules
, this PR caches the result.In a project a with 20k modules, code splitting time is reduced from 6s to 2s.
Related issue (if exists)
Types of changes
Checklist
pnpm run changeset
.