Linked by Thom Holwerda on Sun 15th Oct 2006 11:02 UTC, submitted by michuk
Permalink for comment 171887
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.
News
Linked by Thom Holwerda on 05/19/13 23:15 UTC
Linked by Thom Holwerda on 05/19/13 23:11 UTC, submitted by Drumhellar
Linked by Thom Holwerda on 05/18/13 21:06 UTC
Linked by Thom Holwerda on 05/18/13 7:37 UTC
Linked by fran on 05/18/13 1:38 UTC
Linked by Thom Holwerda on 05/17/13 23:35 UTC, submitted by kragil
Linked by MOS6510 on 05/17/13 22:22 UTC
Linked by Thom Holwerda on 05/17/13 22:15 UTC, submitted by Tom
Linked by Thom Holwerda on 05/16/13 21:41 UTC
Linked by Thom Holwerda on 05/16/13 17:04 UTC
More News »
Sponsored Links



Member since:
2006-09-21
What you are saying is partially true. For example: if several programs are using the same dynamic library, you do have to potential to reduce memory usage and avoid reloading the library. BUT, that assumes that you are concurrently loading software that uses that library. That probably is a safe assumption for libraries like GTK+, Qt, and ncurses. Yet that probably will not be the case for something like Motif, where any given person may use just one or two Motif applications. Also, it is my meager understanding that Linux will not load a page into memory unless that memory location is accessed. So large static binaries should not make much of a difference in terms of RAM consumption or application launch times.
In reality, any application should probably have a combination of statically and dynamically linked libraries. The developer should choose to statically link a library that is small or uncommon, simply to reduce the likelyhood of dependency hell. The developer should choose to dynamically link a library that is large and common, simply so that the user can reap the rewards of dynamic linking in cases where those rewards actually exist. Unfortunately, most developers and packagers either don't want to put that much thought into their decisions, or they make their decisions upon pure ideology.