Posted tagged ‘memory management’

iPhone Memory Management

August 28, 2009

Yesterday we witnessed yet another excellent presentation at the weekly drop-in sessions of our Vancouver iPhone developer meetup, organized at Wavefront.

IMG_0069

Hendrik Presenting Profiling Instruments

Hendrik Kueck presented iPhone memory management basics and a few tricks. Hendrik is the creator of the blockbuster iPhone application ColorSplash , and of the full featured image manipulation application for iPhone Juxtaposer.

Last night’s presentation looked at memory issues on the iPhone, many of which Hendrik found about the hard way. His iPhone applications are performing image processing using intensive memory consuming algorithms.

On the iPhone, like on any other mobile device, programmers have to deal with the fact that the physical memory resources are limited compared with a desktop computer. Hendrik also talked about reference counting, autorelease pools, and specific issues related to loading resource file components and views. Other topics included profiling memory usage and leaks with Apple’s instruments, the use of the static analyzer Clang, tips for allocating a large amount of memory, handling memory warnings, and the use of memory mapped files.

Hendrik posted the full presentation here.