=2D----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=20
poll/select/kqueue/epoll. We all realize that this is horrendously=20
inefficient. The Plan (TM), as I understand it, is to move this to a=20
Twisted reactor and then use the appropriate reactor for the system=20
at hand (kqueue, epoll, etc...).
Someone had mentioned libevent on Wed, and I'm considering writing a=20
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?=20
Nope, it's exactly the right approach.
Regards
=2D --=20
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
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFAZLiuoV0dQ6uSmkYRAunUAKDI9jskaFwpZCmvIAp/xaFhN+OP0gCgsOS+
/z3jZEZfppqRU3PpIdsCufc=3D
=3DfAKv
=2D----END PGP SIGNATURE-----
|