4 ms·
You don't need ultra performant memory management for most of your code. Swift compiles to machine code and ARC is fine for most use cases and you can use unsaf
by jupp0r 4y ago
You don't need ultra performant memory management for most of your code. Swift compiles to machine code and ARC is fine for most use cases and you can use unsafe raw pointers etc for your occasional hot code path where you want to optimize memory management.
- cellularmitosis 4y agoI would love to see what this looks like in practice if you can point me to a link. (I’m now curious if the unowned keyword would have similar performance characteristics)
- jupp0r 4y agohttps://github.com/apple/swift-evolution/blob/main/proposals/0107-unsaferawpointer.md https://github.com/apple/swift-evolution/blob/main/proposals...