in reply to CPU cycles DO NOT MATTER!
My thoughts on this mostly echo Kyle's, but there is another point to bring up: significance.
Benchmarks with tiny differences often aren't even significant. That is to say, that 3 millionths of a second you gain in your example might not just be tiny, but not actually reliably exist. I'm searching now for, but cannot find, an old node here that showed that trivial and seemingly unrelated changes to the source bumped the results around by a few percent.
As far as the original point goes, CPU cycles almost never matter. But there do exist cases where swapping one algorithm for another can offer you a big speed difference in a place where it actually matters.
I think my own optimization decision making gets summed up pretty well by the following:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CPU cycles DO NOT MATTER!
by kyle (Abbot) on Apr 17, 2008 at 16:22 UTC | |
by amarquis (Curate) on Apr 18, 2008 at 03:43 UTC | |
Re^2: CPU cycles DO NOT MATTER!
by radiantmatrix (Parson) on Apr 21, 2008 at 16:20 UTC |