I got to poking around inside medusa's guts and said, "Hey, asyncore.poll() is the innermost loop, why not rewrite it in C?" So I did. The result is at: ftp://starship.python.net/pub/crew/adustman/_asyncore-0.0.0.tar.gz Untar it in ZOPEHOME/lib/ZServer, read medusa/README, and run the build.py script. Restart Zope. That oughta do it. This is so alpha, it's double-secret-no-warranty. I've tested it a bit, will be testing it more. It could easily be leaking memory. It seems to work okay. I hope that for heavily loaded sites with many connections that it will produce a noticable performance improvement. But then, you probably shouldn't try this on a heavily-loaded site yet, unless you can tolerate some downtime... If you want to make this a standard piece of Zope (or medusa), that's okay by me, just let me know. -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!"
participants (1)
-
Andy Dustman