3 ms·
AFAIK the secret sauce of ARC is supposed to be the ability to elide retain/release calls when the compiler can prove that they're not needed, which sounds anal
by kibwen 10y ago
AFAIK the secret sauce of ARC is supposed to be the ability to elide retain/release calls when the compiler can prove that they're not needed, which sounds analogous to the escape analysis used in many garbage collectors.
- Joky 10y agoThere is a major difference: 1) it is static and 2) it provides totally stable and reproducible performance behavior.
- kibwen 10y agoEscape analysis is also static and deterministic (which doesn't mean that changes to the code can't cause the optimization to stop happening without warning, but the same is true of retain/release elision).