4 ms·
I treat memory as a resource too precious to be left to the mercy of programmers. In any application, a good garbage collector can be more efficient than malloc
by chunkbot 16y ago
I treat memory as a resource too precious to be left to the mercy of programmers. In any application, a good garbage collector can be more efficient than malloc/free or new/delete.
http://www.jwz.org/doc/gc.html http://www.jwz.org/doc/gc.html
- rimantas 16y agoHow about compared to retain/release/autorelease?
- SeanLuke 16y ago?? I admit the last time I really coded in Obj-C was for NeXTSTEP. But back then init ultimately called malloc, and release ultimately called free. In any case, yes, a good GC can be faster as it takes advantage of cache effects.
- chunkbot 16y agoI upvoted you, but I was mostly just quoting the jwz article from 1998.