News for hackers. Stuff that matters.
Re:Using select(2) the right way by kelnos on Sunday June 04, 2017 @09:07PM (#14484663)
The thing that really resonated for me in this article was the point that for most of us, the performance of select() or accept() really doesn't matter, because any time spent there is easily dwarfed by application logic, database lookups, queries to other services, etc.

You only really need to care about this if you're working on something mainly concerned with the connections themselves, like HAProxy.

Re:Using select(2) the right way by morecoffee on Sunday June 04, 2017 @10:27PM (#14484934)
The right way to think about these kind of things is in terms of responsiveness. For example, when I think of any request intiated by a user, there is a ~200ms budget of time to service that request. If you can shave off a couple hundred micro seconds, those can be spent on returning a better answer.

Everyone has a piece to contribute to servicing user requests, and every should be mindful how much of the budget they consume. Using select (or epoll) more efficiently makes everyone elses job easier. It is important for everyone in the pipeline to think this way, you included. The user experience depends on it.

Re:Using select(2) the right way by astrobe_ on Monday June 05, 2017 @03:18AM (#14485832)
In a nutshell: performance still matters because your program isn't the only one running on the computer.