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

Where did you get this 5x number? As for reference counting, that's rather time-expensive, and does horrible things to the cache in multi-threaded scenarios.


Hertz and Berger's "Quantifying the Performance of Garbage Collection vs. Explicit Memory Management":

http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.61.9...

The reference counting would only be used in certain cases where the dynamic extent of the object is unknown. Most objects can be cleaned up with an implicit management scheme like the RAII pattern in C++.


Thanks. I'll take a look at that.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: