Object Pools (Android Performance Patterns Season 2 ep5)

Memory Churn is a constant, and serious problem for the performance of your applications. Allocating loads of temporary objects in a short time frame puts a ton of pressure on your memory heaps, resulting in more GC events being kicked off.

In this video Colt McAnlis, provides a recipe for success here: Rather than promoting a bulk of your objects to static in order to solve memory churn problems, you can utilize an amazingly powerful data structure, known as an Object Pool.

Object Pools…


  1. Very interesting, thanks a lot for these tips. However I have a question: what kind of objects should we pool? Custom structures? Views? more complex stuff? I'm not sure what I should pool.

Leave a Reply

Your email address will not be published. Required fields are marked *