I profile the Swift iOS application with tools. A lot of time is spent in
_swift_retain_(swift::HeapObject*) libSwiftCore.dylib
and
_swift_release_(swift::HeapObject*) libSwiftCore.dylib
My code basically creates (and goes out of scope) structures and tuples. I understand that since they are value objects, they are allocated on the stack, so I should not see so many heap actions.
What exactly does _swift_retain_and mean _swift_release_?
source
share