2 ms·
> This is first memory wasteful, as npm is running as the parent process and forking node to run the main script. With Linux's CoW semantics, wouldn't the chil
by unmole 5y ago
> This is first memory wasteful, as npm is running as the parent process and forking node to run the main script.
With Linux's CoW semantics, wouldn't the child share pages with the parent?
- nodesocket 5y agoIf I exec into a container that runs npm and run top you’ll see npm (parent) using res memory and the node process (child) itself using memory. I’m pretty sure the npm memory is just wasted.