|
Posted by Erwin Moller on 08/10/05 13:25
R. Rajesh Jeba Anbiah wrote:
> Erwin Moller wrote:
>> Rune wrote:
> <snip>
>> Why do you care about minimal optimalizations?
> <snip>
>
> Sorry, I can't agree with you. In the world of optimization, there is
> no minimal or maximal optimization--there is only onething, it's
> optimization. Consider a situation/expression in which you can improve
> the speed to 0.000001 second--and consider the same in 1000000 loop.
> So, IMHO, definitely it is worth to optimize, even it is less than a
> nano second thing.
Hi, Rajesh
Well of course.
If you traverse through a loop zillions times, it is worth it.
I was only pointing out that in almost all cases i see, real optimalization
can be achieved by examining your databasequeries.
For example: The fact that you are looping a zillion times on some results
from a database, is an indication that you better learn SQL a little
better, and let the database do that calculations.
That is faster.
Of course you can find situations where you need it, mostly mathematical
issues, like numerical solutions for certain problems.
But in everyday life for a webdeveloper, in most situations: Make better
queries.
So we do not have a contradiction here.
I was making a statement about looping over databaseresults, where you are
making a more general statement.
Regards,
Erwin Moller
>
> --
> <?php echo 'Just another PHP saint'; ?>
> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com
[Back to original message]
|