← Back to context

Comment by KerrAvon

7 hours ago

Swift, by design, does not have GC.

RC is a GC method and the least efficient one.

  • It's the most predictable and has much less overhead than a moving collector.

    • Only when we forget about the impact of cycle collections, or domino effects stoping the world when there is a cascade of counters reaching zero.

      The optimisatios needed to improve such scenarions, are akin to a poor man's tracing GC implementation.