[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Python optimization help



If you are CPU-bound, extra threads won't help in Python due to the GIL (it limits an entire Python process to one core, even with multiple threads). 

Robert
------Original Message------
From: Silver
Sender: owner-pygame-users@xxxxxxxx
To: Pygame Mail List
ReplyTo: pygame-users@xxxxxxxx
Subject: [pygame] Re: Python optimization help
Sent: Jan 19, 2012 9:24 PM

On 1/19/2012 5:33 PM, Silver wrote:
> On 1/19/2012 5:32 PM, Silver wrote:
>> I'm trying to speed up this program as much as possible. Anyone able to
>> help?
>>
>>
> Waugh. Old version...

Oddly enough, lowering the amount of extra workers in the pool results
in a higher speed?