Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes:
1、分别跑了 3 遍,m1 电脑上,yuyanAssets build 稳定提升 200ms 左右
2、比预期小,说明之前也是多核,但可能有对父进程的引用而导致有锁,改用 spawn 后,线程间改用传 chunk_id 的方式
3、产物中 js 总共 25M,入口文件 umi.js 6.8M,generate chunks 公共 9m,其中 non entry 和 entry 分别各占一半,可以看出 entry 部分没有利用多核,可优化空间较大,所以 #451 得继续做 cc @stormslowly