Re: Should I use "if" or "try" (as a matter of speed)?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Should I use "if" or "try" (as a matter of speed)?

From: Roy Smith <roy@panix.com>
Date: Sun Jul 10 2005 - 14:03:44 CEST

Thomas Lotze <thomas@thomas-lotze.de> wrote:
> Basically, I agree with the "make it run, make it right, make it fast"
> attitude. However, FWIW, I sometimes can't resist optimizing routines that
> probably don't strictly need it. Not only does the resulting code run
> faster, but it is usually also shorter and more readable and expressive.

Optimize for readability and maintainability first. Worry about speed
later.
Received on Thu Sep 29 16:51:45 2005