Re: How to avoid swift.retain/release
Gerriet, Take this with a huge grain of salt because I don’t know what’s really going on here and whether the API will permit it, but the first thing I would do is try to get the expensive operation outside any loop if possible: override function doSomething() { let ty = s
How to avoid swift.retain/release
This code executes in a strange way: SubClass takes much longer than BaseClass. class BaseClass { let hugeNumber: Int var bitfield: UnsafeMutablePointer init() { hugeNumber = 1_000_000_000 bitfield = calloc( hugeNumber, 1) }