
22 Dec
2005
22 Dec
'05
9:16 p.m.
Note that each is good for specific things. I have tests and numbers that show select() and epoll() running circles around each other in performance, depending on the way they are used. Mixing the different types of use-cases causes both methods to degrade. Thus, I think it is very reasonable to put some sockets into a select-based method, and other sockets in an epoll-based method.
Interesting. Could you give an example where select() is faster than epoll()? I suspect it is with smaller numbers of file descriptors.