[Twisted-Python] RE: Question about Descriptors and SelectReactor

Alec Matusis matusis at yahoo.com
Wed Apr 8 20:37:19 MDT 2009


> Longer answer: Looks like maybe you want to contribute a patch for this
> ticket :)
> 
>     http://twistedmatrix.com/trac/ticket/2234


I will look at this at some point (really swamped with work). But my question is: are you going to use python's select.epoll() that was introduced in python 2.6 and abandon the custom C module? In that case, the check of the default reactor would be trivial.

> -----Original Message-----
> From: twisted-python-bounces at twistedmatrix.com [mailto:twisted-python-
> bounces at twistedmatrix.com] On Behalf Of glyph at divmod.com
> Sent: Tuesday, April 07, 2009 8:02 PM
> To: Twisted general discussion
> Subject: RE: [Twisted-Python] RE: Question about Descriptors and
> SelectReactor
> 
> 
> 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
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list