-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
build: Set optimization level in per-crate basis #9400
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
CodSpeed Performance ReportMerging #9400 will not alter performanceComparing 🎉 Hooray!
|
@kdy1 the result is not as expect in my opinion for
have a look @hardfist |
latest benchmark base size vs after size file base after delta
rspack.darwin-arm64.node 48861360 47955408 -1.85%
rspack.darwin-x64.node 55926232 54637888 -2.30%
rspack.linux-arm64-gnu.node 51812672 50899264 -1.76%
rspack.linux-arm64-musl.node 60856432 59701360 -1.90%
rspack.linux-x64-gnu.node 60578464 59230880 -2.22%
rspack.linux-x64-musl.node 71989744 70289920 -2.36%
rspack.win32-arm64-msvc.node 37544448 36865024 -1.81%
rspack.win32-ia32-msvc.node 39130112 38091264 -2.65%
rspack.win32-x64-msvc.node 54196736 52907008 -2.38% |
Thank you! |
Summary
This PR reduces the binary size by manually selecting optimization levels for crates.
Checklist