Monthly Archives: March 2009

Pimpl your C++ code

We’ll take a look at the PIMPL (private implementation) pattern today, which is especially useful for larger projects, where compile times become a problem. Pimpl allows to decouple the interface from the implementation, to a point where nearly each class … Continue reading

Posted in Programming | Tagged , | 4 Comments

Memory optimisations

Often underestimated, memory allocations and copying can be a serious performance problem. Especially when using STL containers, which often allocate memory “behind your back”, the memory usage can become difficult to predict, resulting in non-obvious performance problems. There are many … Continue reading

Posted in Programming | Tagged , | 3 Comments