top | item 45503097

(no title)

llimllib | 4 months ago

node/npm operations are vastly slower for me on docker with a linux vm, I have tested this before.

APFS does suck though, don't get me wrong

edit: I just tested, 36s for an `npm i` on a decently large project I have locally, 46s with an overlay fs

discuss

order

dawnerd|4 months ago

Can also confirm. We’ve had some client projects that had npm inside of containers and those were horribly slow on macOS.

Scaevolus|4 months ago

Not an overlay fs, a VM writing to its own virtual block device.

llimllib|4 months ago

I should have been more specific, I tested with:

`rm -rf node_modules && docker run --rm -ti -v $PWD:/app node:20.19.0-alpine3.20 sh -c "cd /app && time npm i"`

So an overlay FS (if I'm understanding you/the OP correctly), not the VM's disk