[链接] investigating npm 3 perf #10380
发布于 8 年前 作者 jiyinyiyong 3489 次浏览 来自 问答

https://github.com/npm/npm/issues/10380 英文社区有人做了详细的对比, 貌似 npm 3 性能开销很大啊, 相比 npm 2. 没详细读… 看上去蛮热闹的, 结论大概是:

npm3 under the hood is operating in a totally new way, and there is a cost for all of the awesome new features such as a deduped tree and a flat tree structure, however there is a pretty significant cost :moneybag: when it comes to install time. Topically it seems like investigating ways to prebundle on the server and or batch requests to the registry would boost perf significantly, there is a fixed cost per network request that npm is making and just the volume of said requests adds up quickly. Figuring out a way to cut this number would boost performance significantly :speedboat: .

1 回复

目前问题很多

回到顶部