"Do this, and come back when you're done"

Valentino Volonghi aka Dialtone dialtone#NOSPAM#.despammed at aruba.it
Sat Dec 13 08:59:53 EST 2003


Kamus of Kadizhar <yan at NsOeSiPnAeMr.com> writes:

> Is there any way to rewrite each half of the function to run in the
> background, so to speak, and then have a master process that waits on
> the results?  This would cut execution time in half more or less.

Why don't you use twisted?  It's a net framework with a lot of
protocols (and you can define your own ones) and it's based on async
sockets which let you write programs avoiding threads for most of the
times.

www.twistedmatrix.com

I'm sure you will find out that's the best thing ever done for python
:)

-- 
Valentino Volonghi, Regia SpA, Milan
Linux User #310274, Gentoo Proud User




More information about the Python-list mailing list