[Twisted-Python] RE: Question about Descriptors and SelectReactor
glyph at divmod.com
glyph at divmod.com
Tue Apr 7 23:02:22 EDT 2009
On 7 Apr, 06:17 pm, matusis at yahoo.com wrote:
>>However I am using Linux. The Twisted documentation is recommending
>>that it may be better to use pollreactor
>
>I would be actually quite curious to know the rationale of choosing
>select()
>over epoll() these days.
>epoll() scales like O(1) with the number of file descriptors, it is
>very
>performant, stable, and has no limitation on the overall number of fds
>on
>linux (except for your /proc and ulimit -n settings). I'd use epoll
>reactor,
>unless you have some very specialized requirement.
Short answer: because select() is always available.
Longer answer: Looks like maybe you want to contribute a patch for this
ticket :)
http://twistedmatrix.com/trac/ticket/2234
More information about the Twisted-Python
mailing list