beachball icon indicating copy to clipboard operation
beachball copied to clipboard

Perf of sync command

Open VincentBailly opened this issue 2 years ago • 0 comments

The "sync" commands takes around 6min to run on a repo that has 1500 packages. The time is spent spawning child-processes to run the npm cli command to get each package metadata. Perf could be greatly improved here by simply calling fetch to the npm feed endpoint directly in process. This would avoid the creation of 1500 child processes and possibly allow nodejs to better manage the SSL connection(s) used to connect to the feed.

VincentBailly avatar Mar 08 '23 20:03 VincentBailly