A roadmap for improving Swift performance predictability: ARC improvements and ownership control

This will be a huge win for us.

With read and modify accessors, and inout, will mutating for-loops be possible on MutableCollectionss?

for &particle in particles {
   particle.position = integrate(particle)
}

I do a lot of realtime simulation and I am frequently surprised at the amount of ARC traffic when I profile our code in Instruments (it's possible to eliminate much of it, but not always). These performance improvements are very welcome and it should be possible to write predictably performant code at the first implementation. Wonderful.

1 Like