3 ms·
The Swift safe version has the benefit of not corrupting memory if you run off the end of the array. In release builds that might account for the small perf dif
by xenadu02 12y ago
The Swift safe version has the benefit of not corrupting memory if you run off the end of the array. In release builds that might account for the small perf difference.
It is not accurate to claim this is comparing the Objective-C version to Swift. It's comparing the C version.