Oh and for us, the rest of the story is for classes where we do this, we have a resizable pool of instances that are allocated once and cleaned for reuse.
It makes mass allocations essentially free and ARC almost gone (still those high frequency calls to the retain/release hooks).
Going further into the future - as we move away from unified memory as our core counts grow - you could imagine single core allocators that use this same motif and are even cheaper . (Single core single thread allows don’t use locks)
This whole thing can be done inside the language ! So people don’t see all this complexity and get even more of a win !
So hey, thanks Tera for leading the charge!
Love swift ![]()