cnpm / rapid

The fastest way to install npm packages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

workspaces 下的性能问题

elrrrrrrr opened this issue · comments

背景说明

目前执行 rapid install 进行挂载时,分为 mount 和 mountOverlay

  1. mount: 需要调用 nydusd 命令,默认执行 promiseAll 操作时可能导致 unixSocket api 执行异常
  2. mountOverlay: 调用原生的 mount 方法,多次操作耗时比较久

改动方案

  1. 😭 短期先将 workspaces 的 mount 操作变为串行
  2. 🤔 长期可能需要对 workspaces 场景,将所有 node_modules 放在同一个挂载点内