Hacking OpenCV for fun and profit
This post convers very specific but important topic about writing memory-efficient code. I will show you how to collect and analyze memory allocations that happens in OpenCV.
When it comes to writing efficient code we usually care about CPU-efficiency. However there are many times, when memory-efficiency is more important. A limited amount of RAM is not so rare as one can think. On iOS and Android there are a strict memory usage restrictions, and of your app uses more memory than allowed your app can get killed by the system. Embedded hardware systems used in IoT, Raspberri Pi and others also have very limited amount of RAM. So you should be very careful when porting code from desktop with gigabytes of memory to mobile platform.