Re: port to twisted
Alex Russell <[email protected]> Fri, 26 Mar 2004 15:11:42 -0800
| Newsgroups | gmane.comp.web.mod-pubsub.devel |
|---|---|
| Organization | netWindows.org |
| Message-ID | <[email protected]> |
-----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 [email protected] BD10 7AFC 87F6 63F9 1691 83FA 9884 3A15 AFC9 61B7 [email protected] 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