31-12-2009 Rodrick Brown <rodrick.br...@gmail.com> wrote:
I started dabbling with threads in python and for some odd reason the
performance seems extremely poor on my 2 core system.
It this a simplified version spawn 2 threads write some data to a file
and time the results vs doing the same sequentially.
Why is the performance so much slower with the threaded version?
I suppose here is the answer: http://www.dabeaz.com/python/GIL.pdf
(anyway -- very interesting material).
AFAIU, in Python 3.2 some of the problems will be corrected (though GIL
itself stays alive) -- see:
http://docs.python.org/dev/py3k/whatsnew/3.2.html#multi-threading
Cheers,
*j
--
http://mail.python.org/mailman/listinfo/python-list