4 ms·
So what should he use instead?
by mpweiher 12y ago
So what should he use instead?
- austinz 12y ago> UnsafeMutablePointer (which is basically direct C-style memory access)
- kybernetyk 12y agoUnsafeMutablePointer<UInt8> Which he somehow dismisses but is the corresponding thing to an unsafe C array. I'm not a big fan of Swift but this rant is rather unfounded. Sometimes you have to give up high level abstraction for performance. In Obj-C he was willing to do so by using an C array. In Swift on the other hand he insists on using the high level array implementation.