3 ms·
the solution is to stop linking libraries globally
by duped 5y ago
the solution is to stop linking libraries globally
- wizzwizz4 5y agoThen you raise the number of libraries in your program to some power > 1, due to the proliferation of versions. Hope you're using compile-time LTO with code deduplication!
- duped 5y agoMost libraries are not shared, even when they are ostensibly "shared" libraries. Plus disk is cheap, it seems dumb to optimize for it in the 21st century. You don't need LTO for dead code elimination.
- KerrAvon 5y agoA number of libraries are in fact shared. And RAM is not cheap when considered across the entire OS, and if every process has their own copy of the library, that’s a lot of RAM eaten up by needless duplication.
- vlovich123 5y agoIs that necessarily true in a world of zram?
- salawat 5y agoCPU cycles are still quite expensive, I assure you. It adds up.
- duped 5y agoIt's negligible, for example : https://drewdevault.com/dynlib https://drewdevault.com/dynlib