News for hackers. Stuff that matters.
Re:“Shared libraries are not a good thing in general” by felipelemos on Saturday May 01, 2021 @07:04PM (#27010719)
Well, you will have multiple copies of the same library in your system, but they will be just exclusive for each application.
Re:“Shared libraries are not a good thing in general” by fao_ on Monday May 03, 2021 @04:20AM (#27022744)
Well, not really. The compiler is able to optimize the contents of the library and integrate it with the program. i.e. some functions will just be inlined, and that means that those functions won't exist in the same form after other optimizations are applied (Like, maybe the square root function has specific object code, but after inlining the compiler is able to use the context to minify and transform it further).

So it's actually less wasteful.