Avatar
なんかメモリ(ARC)周りで工夫してるっていう記述があったはず
3:26 AM
The Swift Programming Language. Contribute to apple/swift development by creating an account on GitHub.
3:26 AM
Memory is managed on the C++ side. On the Swift side, SIL objects are treated as "immortal" objects, which avoids (most of) ARC overhead. ARC runtime functions are still being called, but no atomic reference counting operations are done. In future we could add a compiler feature to mark classes as immortal to avoid the runtime calls at all.