4 ms·
Actually, everything was pretty simple: Use libev since it's faster than libevent, use Node's http parser because it's fast. Then allow each thread in the pool
by film42 12y ago
Actually, everything was pretty simple: Use libev since it's faster than libevent, use Node's http parser because it's fast. Then allow each thread in the pool to run its own event loop. This pretty much sums up my university's Internet Programming course. There were few hairy bits about tcmalloc, but they did a great job about explaining how they took advantage of object pooling and region-based memory management. Great post guys, I can't wait to give your source a read :)
- yazaddaruvala 12y agoAny idea why they didn't use libuv instead?
- film42 12y agoI haven't seen any benchmarks comparing the two, but Node first used libev, and then the team created libuv out of a need to support Windows, because libev is unix only. Actually, it's all in this about page: http://nikhilm.github.io/uvbook/introduction.html http://nikhilm.github.io/uvbook/introduction.html