Created
November 10, 2008 17:23
-
-
Save sbrocket/23550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSAutoreleasePool *pool = nil; | |
for (int x = 0; x < 100000; ++x) { | |
if (x%1000) { | |
[pool release]; | |
pool = [[NSAutoreleasePool alloc] init]; | |
} | |
// Do memory intensive stuff that adds a lot of stuff to the autorelease pool | |
} | |
[pool release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment