[Stackless] Stackless Python problem. Help respectfully Requested.

Grant Olson olsongt at verizon.net
Sun Jul 16 02:25:10 CEST 2006


Bob Wrote
> 
> You need networking code that understands stackless. Such a package
doesn't
> publicly exist to my knowledge. You can however do this task in Twisted,
and
> you would get the benefits of parallel requests.
> 
> -bob
>

There is a low-level stackless socket on the stackless website.  You would
have to manually build the HTTP stuff on top of that, so a rewrite might not
be worth it:

http://www.stackless.com/Members/rmtew/code/stacklesssocket.py/file_view

Steven,

Also note that a stackless version may or may not be faster than the normal
version, it will simply be more responsive.  Stackless doesn't run on
multiple CPUs or hyperthreads so you won't get any immediate speedup just by
using it.  It would help performance if (for example) one request hangs,
then other threadlets can be processed without the hanging request blocking
your application, which would not happen in the normal version of the code.
I wouldn't expect to see a dramatically general speedup though.  Apologies
if you already realized this.

-Grant


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list