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]: concatenateModules 导致构建变慢 #1165

Closed
xusd320 opened this issue May 15, 2024 · 3 comments
Closed

[perf]: concatenateModules 导致构建变慢 #1165

xusd320 opened this issue May 15, 2024 · 3 comments
Assignees
Labels
later low Priority

Comments

@xusd320
Copy link
Contributor

xusd320 commented May 15, 2024

跑 yuyanAssets, 对比开启和关闭 concatenateModules,开启后慢了 60% +

cargo run --release  --bin mako ../yuyanAssets  --mode production

开启
image

关闭
image

@xusd320 xusd320 added the later low Priority label May 15, 2024
@stormslowly
Copy link
Member

感觉属于预期内的变慢,开启 concatenate 多个模块合并成了一个 巨大的 ast, 让 minify compress 优化难度增加。

后面可以尝试下
concatenate config 并行处理,合并完了之后先 optimize 下,看看能不能平衡下时间和尺寸。

@stormslowly
Copy link
Member

compress配置 目前是用的 默认值 3 ,感觉生产构建如果对尺寸敏感的话可以改成更高的值。

@sorrycc
Copy link
Member

sorrycc commented Jan 14, 2025

I'll close it and reopen it if necessary.

@sorrycc sorrycc closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
later low Priority
Projects
None yet
Development

No branches or pull requests

3 participants