3 ms·
Don't underestimate how performant a single thread is! Some problems are embarrassingly parallel. Of course coordinating threads is difficult. I am designing
by samsquire 4y ago
Don't underestimate how performant a single thread is! Some problems are embarrassingly parallel.
Of course coordinating threads is difficult.
I am designing an LMAX disruptor system that translates a synchronous piece of code into nested LMAX disruptors.
Essentially you can do high IO and high CPU and not block other requests as they're pipelined.
https://github.com/samsquire/ideas4#51-rewrite-synchronous-code-into-lmax-disruptor-thread-pools---event-loops-that-dont-block-on-cpu-usage https://github.com/samsquire/ideas4#51-rewrite-synchronous-c...
Don't block the UI thread or the node js event loop. We don't have to pick between tokio and rayon. We can have multiple event loops.