5 ms·
As long as you don't mind having the entire uncompressed binary in memory, I don't think I see how. Can you elaborate?
by FiloSottile 11y ago
As long as you don't mind having the entire uncompressed binary in memory, I don't think I see how. Can you elaborate?
- jsnell 11y agoEvery instance of the program will have its own private copy of the uncompressed data. For normal uncompressed binaries the pages of the on-disk binary would be shared instead. (Except for any pages that get modified, which would trigger copy-on-write. A classic example would be load-time dynamic linker relocations).
- noselasd 11y agoSure - but that's a different thing than same-page merging.