5 ms·
This is only true for generational and/or compacting garbage collectors, right? So not Go, for instance?
by sapiogram 3y ago
This is only true for generational and/or compacting garbage collectors, right? So not Go, for instance?
- cogman10 3y agoIt's true for moving collectors. Go does not have a moving collector so I'm guessing it is doing something like an arena allocation (perhaps just relying on jemalloc and calling free at the right times?). In which case go's allocation speed will be around C's speed. They could be doing something different but I didn't stumble across that googling.