4 ms·
The garbage collector is still not mature and could use some optimizations. For mobile, I'd use reference counting, with an incremental collector working on th
by stcredzero 15y ago
The garbage collector is still not mature and could use some optimizations.
For mobile, I'd use reference counting, with an incremental collector working on the cycles. (And encourage the pros to use weak references.)
- pcwalton 15y agoI'm skeptical. Incremental cycle collection is quite hard, and you lose the benefits of cycle collection (only tracing suspected-dead objects) when you move to tracing garbage collection as a backup for reference counting. For mobile I would just use an incremental garbage collector with heavy usage of stack allocation and interior objects. Or use a reference-counted system and disable the GC entirely (leaking cycles).
- stcredzero 15y agoIncremental cycle collection is quite hard Incremental GC has been done. It wouldn't be super efficient, which is why one would encourage the pros to use weak references.