Announcement
Collapse
No announcement yet.
Fedora Stakeholders Debate Statically Linking Python For Better Performance
Collapse
X
-
Originally posted by rene View PostI did not say to use static linking. I actually don't support that very much as each library security update requires rebuilding or relinking all the executables. I mean to think about something more innovative.
Comment
-
Originally posted by rene View Post
instead of having the shared object mapped once in each process using it, you would have a copy-on-write modified version in each process for the relocated jumps all over the place.
The code that was linked from the library will be heavily optimized and integrated into the executable at a fraction of the size it were in the library.
Comment
-
Originally posted by starshipeleven View Postrebuilding/relinking isn't a huge issue with ccache
Comment
-
Originally posted by Raka555 View Post
There won't be copy-on-write versions of the library in memory of each process.
The code that was linked from the library will be heavily optimized and integrated into the executable at a fraction of the size it were in the library.
Comment
-
Originally posted by rene View PostWell, I for one don't want GB of ccache on my system, plus if you rebuild more stuff usually some header changed a little bit here and there causing large scale cache invalidation anyway, ...
I don't even have my own distro but I have a dedicated "buildserver" for my OpenWrt stuff (an old shit PC with a bunch of old 512GB hard drives in RAID0), and with ccache it's pretty decent.
- Likes 1
Comment
-
Originally posted by rene View PostDespite each, even fractional copy of a library inside each and every executable is space wasted over the shared object approach invented (among other things) exactly for this reason, ...
Comment
-
Originally posted by starshipeleven View PostIt's always a tradeoff between things. It's just that the "wasted disk and RAM space" weights less now in (near)2020 than back in the day.
Comment
-
Originally posted by starshipeleven View PostAre you rebuilding your distro from your personal PC?
I don't even have my own distro but I have a dedicated "buildserver" for my OpenWrt stuff (an old shit PC with a bunch of old 512GB hard drives in RAID0), and with ccache it's pretty decent.
Comment
Comment