Skip to content

workers on yarn install in nodeLinker: node-modules modeΒ #6552

@sod

Description

@sod

Testing deno install cached installation:

yarn install --mode=skip-build  6,45s user 7,74s system 255% cpu 5,559 total
deno install  1,01s user 15,43s system 662% cpu 2,482 total

(comparing skip-build against deno, as deno ignores all post-install scripts by default)

My node_modules folder is ~500 MB in size. A typical angular application (this one https://github.com/sod/sod-monorepo).

Not sure if it's just rust or that they distribute the work over all cpu cores.

Do you think using workers to distribute creating the file system entries could greatly boost cached installs?

I'm sorry if I sound ridiculous as I'm aware that yarn solved this already with pnp mode. I just never switched, as it took too much time fighting the node ecosystem.

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