[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Re: Python optimization help
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Re: Python optimization help
- From: "Robert Xiao" <nneonneo@xxxxxxxxx>
- Date: Fri, 20 Jan 2012 03:45:21 +0000
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 19 Jan 2012 22:45:37 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=x-rim-org-msg-ref-id:message-id:content-transfer-encoding:reply-to :x-priority:sensitivity:importance:subject:to:from:date:content-type :mime-version; bh=170jxhgv/d1IQQFuy24IpXHGQDrKcwtEQ8DoG674yUQ=; b=dxBMiFVJQafYdOtdlSKV1WRV48KlFaBtu4/3AwCoEi/Ef2tktZpq1zcxCMz9my03VS d1UwWh9vxd1un7YwdTBHxfpxCTjsZwb7uQe4scQmeQiijZxw5LcGtF+5qS0ymVB0W0N8 NSFeCHIE0f/ih3+TNJrPf6yep2Co6uStjAnks=
- Importance: Normal
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- Sensitivity: Normal
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?