Re:Changing the Rules of Rust
by scottlamb on Monday September 18, 2023 @11:44AM
(#37557782)
I'm aware. A cycle per allocation would be absurdly expensive. "GC every heap allocation" actually means that every heap allocation is subject to garbage collection and has to be traversed on every cycle in which it's reachable. If the GC algorithm uses compaction and/or generations, it gets moved around too. That all has a cost.
[ Parent
| on HN ]
There are no comments on this comment yet.