From: BC S. <bsi...@in...> - 2004-03-27 00:06:40
|
Just to be sure I understand... there is a kqueue [*bsd] reactor already in twisted, but not one for epoll [linux], right? And Joyce needs one for Linux? ----- Original Message ----- From: Alex Russell <al...@ne...> Date: Fri, 26 Mar 2004 15:11:42 -0800 To: George Schlossnagle <ge...@om...> Subject: Re: [Mod-pubsub-developer] port to twisted > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday 26 March 2004 2:05 pm, George Schlossnagle wrote: > > Hi, > > > > Joyce Park has been talking to me about porting mod_pubsub to use > > the twisted event framework. I've done some poking around and > > wanted to share some assessments before I start work in earnest: > > > > In your main event loop, you currently do this: > > > > while server.alive: > > asyncore.poll(scheduler.timeout()) > > scheduler.run() > > Right. This was the primary discussion point around > poll/select/kqueue/epoll. We all realize that this is horrendously > inefficient. The Plan (TM), as I understand it, is to move this to a > Twisted reactor and then use the appropriate reactor for the system > at hand (kqueue, epoll, etc...). > > Someone had mentioned libevent on Wed, and I'm considering writing a > reactor for it, which would ease the portability issues further. > > [ snip ] > > Actual implementation aside, is their any reason I'm missing as to > > why this is a bad idea? > > Nope, it's exactly the right approach. > > Regards > > - -- > Alex Russell > al...@bu... BD10 7AFC 87F6 63F9 1691 83FA 9884 3A15 AFC9 61B7 > al...@ne... F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Darwin) > > iD8DBQFAZLiuoV0dQ6uSmkYRAunUAKDI9jskaFwpZCmvIAp/xaFhN+OP0gCgsOS+ > /z3jZEZfppqRU3PpIdsCufc= > =fAKv > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Mod-pubsub-developer mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-pubsub-developer -- _______________________________________________ Get your free email from http://www.iname.com |