Tag Archives: optimisation

War story: Cache if it you can

The first post in what I hope becomes a series of war stories, right from the trenches. If you have some piece of code which pops up at the top of your profiler output, and you’re about to show off … Continue reading

Posted in Programming | Tagged , | Leave a comment

Compiler magic

Just seen this: Inside template heavy code, Visual C++ 8 was able to unroll a loop and add a prefetchnta call to prefetch data – first time I’ve seen this with VC++ 8. Well done, folks! [Update:] This seems even … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Cache-aware programming

I’ve been working today on a project, and after the first implementation session I ran it through a profiler to see whether I had some obvious performance bottlenecks. Turned out not to be the case, but looking through the code, … Continue reading

Posted in Programming | Tagged | 4 Comments

AMD releases “Barcelona” software optimization guide

AMD just released the software optimization guide for their K10 (“Barcelona”) CPU line. You can get it from here. Seems the SSE units are really 128 bit wide (as expected). They improved the instruction fetching to fill the wider execution … Continue reading

Posted in Programming | Tagged , , | Leave a comment