Am 20.09.2014 15:40, schrieb Ola Fosheim Grostad:
On Saturday, 20 September 2014 at 12:27:23 UTC, Jacob Carlborg wrote:
Assuming this would eventually be implemented for regular classes, it
would be nice if it could be made compatible with Objective-C ARC [1].

[1] http://clang.llvm.org/docs/AutomaticReferenceCounting.html

Isn't Objective-C ARC known to be terribly efficient?


It requires compiler support, though.

- Place retain/release at each place expected by Cocoa programming conventions, as if manually written

- Do a second pass with data-flow analysis to remove retain/release pairs that don't escape current scope.

If you have an Apple account search for:

"Transitioning to ARC Release Notes", ARC
"Memory Management Programming Guide for Core Foundation" - Cocoa conventions and allocators
"WWDC 2012: Adopting Automatic Reference Counting" - Overral description
"WWDC 2012: What's New in LLVM" - Some slides about ARC Optimizer

--
Paulo

Reply via email to