Python Performance vs. C++ in a Complex System

Aahz Maruch aahz at panix.com
Sat Apr 21 17:58:41 EDT 2001


In article <mailman.987876457.15794.python-list at python.org>,
Gabriel Ambuehl  <gabriel_ambuehl at buz.ch> wrote:
>Aahz:
>>
>> It depends on whether you use native Python threads or microthreads
>> built on top of Stackless Python.  Python threads are built on top of
>> OS-level threads, so the OS handles the context switch.  Microthreads
>> are built on top of continuations in Stackless, and an essentially
>> cooperative multi-tasker handles the context switches.
>
>So Microthreads are faster? Guess I'll have to try out stackless
>then...

Overall, yes, but you don't get the benefit of parallelism on blocking
I/O.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Beware of companies that claim to be like a family.  They might not be
lying."  --Jill Lundquist



More information about the Python-list mailing list