@autoreleasepool leftover? #7

Closed
pepejeria opened this Issue Jan 3, 2013 · 2 comments

Comments

Projects
None yet
2 participants

Parser.m has an @autoreleasepool block in the parse method. Is this correct or is this a leftover from the Apple example where this class used to be a NSOperation?

Owner

hollance commented Jan 3, 2013

I left it in there because parsing can create a whole bunch of temporary objects and it is nice if these get cleaned up by the time parsing ends, so that it doesn't fill up memory too much. Having the @autoreleasepool block there will release all these temporary objects.

Owner

hollance commented Mar 31, 2014

Closing this because the code is now deprecated.

hollance closed this Mar 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment