[Python-Dev] epoll implementation (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sat May 27 08:56:51 CEST 2006
- Previous message: [Python-Dev] epoll implementation
- Next message: [Python-Dev] epoll implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alex Martelli wrote:
Of course that would mean establishing which was the best available which, as we've seen this week, may not be easy. I believe it's: kqueue on FreeBSD ...
Such a statement assumes they are semantically equivalent. However, I believe they aren't. A specific usage pattern can be expressed with any of them, for such a usage pattern, you can come up with a ranking even.
For example, to check whether a single specific file descriptor is ready, I would assume that poll is best (even better than epoll and kqueue). To check whether file descriptor 0 is ready, I would assume that select is even better.
Regards, Martin
- Previous message: [Python-Dev] epoll implementation
- Next message: [Python-Dev] epoll implementation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]