3 ms·
True enough. But choice of algorithm can often mean cache-awareness, too - using a random access algorithm where a sequential one could be used instead can be
by ewjordan 17y ago
True enough.
But choice of algorithm can often mean cache-awareness, too - using a random access algorithm where a sequential one could be used instead can be a 10x performance drain, and a 10x constant multiplier is pretty substantial.
For a concrete example, a lot of the most important optimizations in physics simulations involve satisfying the simultaneous goals of using cache-friendly and parallel algorithms. In some cases people are even willing to accept worse big O behavior because the "worse" algorithms use a lot of sequential access and parallelize easier than the sophisticated ones, more than making up the difference for the object counts that come up in practice.
- palish 17y agoYou sound like you've worked on physics simulations. Care to elaborate? That sounds interesting.