News for hackers. Stuff that matters.
Re:Apple is rewriting Foundation in Swift by GeekyBear on Monday May 22, 2023 @01:38AM (#36027819)
> Reference counting is slow because it has an additional increment/decrement operator on each lifetime of a scope.

On Apple Silicon this particular use case saw a large optimization compared to Intel.

> fun fact: retaining and releasing an NSObject takes ~30 nanoseconds on current gen Intel, and ~6.5 nanoseconds on an M1

There are no comments on this comment yet.