Skip to content

Perf of sync command #834

@VincentBailly

Description

@VincentBailly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions