TLDR Web Dev · ARTICLES & TUTORIALS
WHY IS SPAWNING A NEW PROCESS IN NODE SO SLOW?
Summary from the TLDR Web Dev newsletter
Node's spawn function can be slow due to its blocking nature. Using the Node cluster module or worker threads can improve spawn performance, but may have drawbacks like isolated processes or added overhead. Moving spawn calls to child processes and using abstract sockets or process.send for communication can help performance in this case.