[Tutor] What techniques should I use to make my code run faster?Informational

Alan Gauld alan.gauld at freenet.co.uk
Thu Aug 10 00:41:52 CEST 2006


Hi Anil,

It looks like you found the info below somewhere, it would be
nice to credit the source and if possible provide a URL - not
least so we can all bookmark it and see if it gets updated
over time?... :-)

Thanks for posting,

Alan G.

----- Original Message ----- 
From: "anil maran" <anilmrn at yahoo.com>
To: <tutor at python.org>
Sent: Wednesday, August 09, 2006 11:16 PM
Subject: [Tutor] What techniques should I use to make my code run 
faster?Informational


>      What techniques should I use to make my code run faster?
Always profile before you optimize for speed.   You should always
optimize for readability first: it's easier to tune readable code than
to read 'optimized' code, etc....



More information about the Tutor mailing list