logoalt Hacker News

mrlonglongyesterday at 11:34 PM3 repliesview on HN

Boost asio if you love C++ and asynchronous networking.


Replies

DmitryOlshanskytoday at 6:29 PM

I’ve replaced Asio recently with stright epoll event loop and got about 16% RPS better. That is for resonably sized SQL server, so be careful with nice precanned libraries.

MathMonkeyMantoday at 12:03 AM

I switched out asio's epoll backend for its io_uring in a database server and CPU utilization shot up. Probably depends on usage and the specifics of how it's integrated into the event code.

show 3 replies
LoganDarktoday at 2:47 AM

Boost is so inconvenient, they're huge dynamic libraries that are a pain to build and use. Even when I was already using CMake, getting Boost installed in a way where it could be discovered was super annoying. (I was on Mac, though)

show 3 replies