|
|
|
|
|
by bascule
5132 days ago
|
|
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++ |
|