workspaces 下的性能问题
elrrrrrrr opened this issue · comments
elrrrrrrr commented
背景说明
目前执行 rapid install
进行挂载时,分为 mount 和 mountOverlay
- mount: 需要调用 nydusd 命令,默认执行 promiseAll 操作时可能导致 unixSocket api 执行异常
- mountOverlay: 调用原生的 mount 方法,多次操作耗时比较久
改动方案
- 😭 短期先将 workspaces 的 mount 操作变为串行
- 🤔 长期可能需要对 workspaces 场景,将所有 node_modules 放在同一个挂载点内