3 ms·
> Reference counting is usually very expensive, because even reading a variable updates the reference count There are many papers out there on how to elide mos
by naasking 5y ago
> Reference counting is usually very expensive, because even reading a variable updates the reference count
There are many papers out there on how to elide most ref count operations on locals, and runtimes that use ref counting for automatic memory management typically defer ref count updates in various clever ways (like Nim IIRC). You give up some latency for significant throughput gains.
- kragen 5y agoAye.