I'm looking for a primary source (or a really good explanation) to back up the claim that the use of autorelease
is dangerous or overly expensive when writing software for the iPhone.
Several developers make this claim, and I have even heard that Apple does not recommend it, but I have not been able to turn up any concrete sources to back it up.
SO references:
autorelease-iphone
Why does this create a memory leak (iPhone)?
Note: I can see, from a conceptual point of view, that autorelease
is slightly more expensive than a simple call to release
, but I don't think that small penalty is enough to make Apple recommend against it.
What's the real story?
See Question&Answers more detail:os