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

Quite the opposite actually, this optimisation is only useful if you intend to run several instances of the same program. Otherwise each instance has its own copy of the code and rodata, therefore wasting memory.

It's one of the advantages of using shared libraries as well, several programs can share the same code and read-only data, saving in storage and memory space.



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

Search: