Re:Make your program slower with threads
by JoeAltmaier on Sunday December 07, 2014 @10:25AM
(#8712404)
We're in a strange place with optimization. Hardware folks build very complex memory access paths (multiple caches/multiple accessors) to try and speed up the average case of unoptimized code. Then we try to trick that mechanism into performing for our particular computations. Maybe some programmable architecture would help here? Maybe not.
The more general lesson is this: Just because you have very good reasons to believe a change will improve performance, that doesn't mean it will actually improve performance! Benchmark. Profile. Fix the bottleneck. Repeat. That's the only reliable way to make something faster.
1. http://geoff.greer.fm/2012/09/07/the-silver-searcher-adding-...