Re: Analyser reports memory leak… where?
Re: Analyser reports memory leak… where?
- Subject: Re: Analyser reports memory leak… where?
- From: Marcel Weiher <email@hidden>
- Date: Thu, 12 Sep 2013 20:46:29 +0200
Hi Bill,
On Sep 12, 2013, at 18:57 , Bill Cheeseman <email@hidden> wrote:
> As I recall, [Ali’s technote] stated that the "return [[x retain] autorelease]" pattern is preferred for getters and gave many reasons for preferring it. I understand that @synchronize generates getters that comply with this preference, and I also recall that some of the early documentation about properties discussed this convention.
I think you meant the ‘atomic' property modifier. Note that the iOS team did not agree with Ali on this, due to the ginormous performance penalties in both CPU and memory: they made ‘nonatomic’ the standard for iOS, despite the fact that the language defaults to ‘atomic' and you therefore have to type ‘nonatomic' every time.
Now considering the relative installed bases...
Marcel
p.s.: If I understand it correctly, ARC’s magic un-autoreleaser largely ameliorates the perf. problems
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden