Shared libraries
Shared libraries
Posted Nov 25, 2025 19:16 UTC (Tue) by mb (subscriber, #50428)In reply to: Shared libraries by joib
Parent article: APT Rust requirement raises questions
dylibs are much bigger because they have to include everything and not only the bits that the application needs.
And they are scattered around in the file system which causes lookups and seeks.
I doubt that this can be faster on average.
Maybe it's faster for small applications where everything but the main binary is already in the page cache.
But I doubt it's true in a general sense.
And they are scattered around in the file system which causes lookups and seeks.
I doubt that this can be faster on average.
Maybe it's faster for small applications where everything but the main binary is already in the page cache.
But I doubt it's true in a general sense.
Are there actual numbers from real life examples that show that Rust startup times are slower due to static linking?
Are uutils slower than gnu coreutils, just because they are statically linked?
And libc is dynamically linked to Rust programs.
These days in practice probably neither dynamic not static linking is slow in the days of extremely fast CPUs and SSDs.
