Re:Ask HN: Event loop vs. Threads
by bascule on Monday May 28, 2012 @12:09PM
(#4033932)
Unfortunately Node's implementation of web workers uses external processes and serializes all the data as JSON. This makes them considerably slower than Chrome's implementation of web workers, which use threads.
In general if you're doing something compute-bound, Node's single threaded event loop isn't going to help you.
Depending on your performance requirements you might take a look at LMAX and Disruptor. At the very least you could be writing Java instead of C++
In general if you're doing something compute-bound, Node's single threaded event loop isn't going to help you.
Depending on your performance requirements you might take a look at LMAX and Disruptor. At the very least you could be writing Java instead of C++