Autorelease pools can help save memory

Try running this simple experiment to see, how using autorelease pools can add up and save you tons of memory. I did, and it really helped.
No autorelease pool for temporary objects:
https://gist.github.com/kmdarshan/ecf28ae0acb576e73b51
Memory Usage:
Screen Shot 2015-05-16 at 3.23.50 PM
https://gist.github.com/kmdarshan/b2fb19d6907cd5681b9f
Memory Usage:
Screen Shot 2015-05-16 at 3.25.08 PM

In

Leave a Reply

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