On 6/22/05, Jim Fulton <[EMAIL PROTECTED]> wrote:
> Tim Peters wrote:
> > IMO/IME, asyncore is a poor fit for applications where the callbacks are
> > "fancy", or even where they may just take a long time to complete (because
> > the asyncore mainloop is unresponsive for the duration).  So if I had to use
> > asyncore (I've never done so on my own initiative <wink>), I'd gravitate
> > toward a work-queue model anyway, where threads unfettered by asyncore
> > worries do all "the real work"-- especially on Windows, which loves to run
> > threads --and where asyncore callbacks do as little as possible.
> 
> Agreed.
> 
> This is exactly the model that Zope uses.

ZEO also runs several potentially slow operations in separate threads.
 I think we've wondered in the past whether the tpc vote should be
another of those operations as the disk IO for a large transaction is
non-trivial.

Jeremy
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to