Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Thread performance on Python 2.6

0 views
Skip to first unread message

Jan Kaliszewski

unread,
Dec 31, 2009, 7:39:45 AM12/31/09
to pytho...@python.org
31-12-2009 Rodrick Brown <rodric...@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

0 new messages