THREE OCCASIONS WHEN YOU MIGHT USE YOUR OWN AUTORELEASE POOLS

Mikki Halpin

Total Post:5

Points:25
Posted by  Mikki Halpin
 876  View(s)
Ratings:
Rate this:
  1. Mikki Halpin

    Post:5

    Points:25
    Three occasions when you might use your own autorelease pools

    If you are writing a program that is not based on a UI framework, such as a command-line tool.

    If you write a loop that creates many temporary objects.You may create an autorelease pool inside the loop to dispose of those  objects

     before the next iteration. Using an autorelease pool in the loop helps to reduce the maximum memory footprint of the  application.

    If you spawn a secondary thread.

      Modified On Apr-16-2016 02:52:44 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!