Re: Is "-init" really needed?
Re: Is "-init" really needed?
- Subject: Re: Is "-init" really needed?
- From: Alastair Houghton <email@hidden>
- Date: Thu, 10 Aug 2017 15:15:35 +0100
On 10 Aug 2017, at 15:09, Charles Srstka <email@hidden> wrote:
>
> They’re equivalent syntactically, but performance-wise, +array and friends
> will cause the object to be put into an autorelease pool. Therefore, +new is
> better for performance.
Not with ARC they don’t. The ARC logic circumvents the autorelease pool in
that case.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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