3 ms·
You'd use automatic reference counting, as Swift and Nim do.
by shirleyquirk 4y ago
You'd use automatic reference counting, as Swift and Nim do.
- southerntofu 4y agoGood point! I had previously assumed this was considered a form of "garbage collector" although not tracing.
- j-james 4y agoWell, sort of - it adds overhead, though in the form of an extra byte/object and an extra CPU cycle when objects are allocated/deallocated to check/update the reference counts, rather than the lag spikes tracing GCs are known for.