Posted by Alvaro G. Vicario on 11/04/65 11:54
*** Ian Davies escribió/wrote (Tue, 01 Aug 2006 10:53:54 GMT):
> I also realised this too and have decides afterall to go with the if
> statement by Miquel (THANKS MIQUEL) as there will be less lines of code. Do
> you know if there is a performance advantage over the switch method?
Don't care about performance at this level. Just try to do what best suits
your code logic: it's far more important to understand your code several
months after your wrote it.
Typical performance issues are more like:
* Fetching 5000 database records to display the top 5
* Dynamically generating the very same thumbnail every time it's requested
* Loading a full 20MB text file into memory to process it line by line
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|