Closed easy1090 closed 3 months ago
Name | Link |
---|---|
Latest commit | d39a4d241530e2ac3a7761bf873f4c6fc1c24222 |
Latest deploy log | https://app.netlify.com/sites/rsdoctor/deploys/6686181a2d81bb0008df41fc |
Deploy Preview | https://deploy-preview-412--rsdoctor.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Summary
perf: optimize the package graph algorithm.
In some repositories, a large amount of time is spent on the createPackageGraph function. It is because the path.relative api. So optimize the algorithm of
contain
function. After optimization, the createPackageGraph function has a 75% improvement in time efficiency.this.root
andfile
are absolute path, so no need relative to check.Before:
After:
Related Links
closes: #414