|
|
|
|
|
by flohofwoe
1018 days ago
|
|
ObjC's and Swift's ARC (Automatic Reference Counting) is not just dumb "reference-count everything", the compiler does static lifetime analysis and removes redundant refcounting operations. In theory at least this may actually yield better results than in C++ and Rust where refcounting is implemented as stdlib feature and optimizations rely on "zero cost abstractions" late in the compilation process. But even ARC needs a lot of handholding and manual tweaking if performance matters. |
|