Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is only true for generational and/or compacting garbage collectors, right? So not Go, for instance?


It'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: