3 ms·
> [...] no garbage collection, granted the reference counting in Swift can be problematic, but it seems to be improving with each release. nitpick: reference c
by fulafel 8y ago
> [...] no garbage collection, granted the reference counting in Swift can be problematic, but it seems to be improving with each release.
nitpick: reference counting is a form of GC in standard CS terminology. It saves some memory compared to other GC methods but is slowish.
- chadcmulligan 8y agoreference counting is deterministic, GC isn't, which was always the apple engineers objection to GC - no pause while the collector runs.
- beureum 8y agoThere exist pauseless GCs, Apple's objection to GC is that GCs need more RAM, and that would reduce their profit margin on iPhones. A fair reason if you ask me.
- deleted 8y ago[deleted]
- fulafel 8y agoReference counting has pauses, as object deallocations cascade. You can address this by having a deallocation work list that runs a bit at a time, but then again there is also a large body of work on other kinds of GCs that address pauses.