Shared Libraries Reduce RAM Usage
Shared Libraries Reduce RAM Usage
Posted Nov 11, 2022 19:09 UTC (Fri) by XERC (guest, #14626)Parent article: Packaging Rust for Fedora
I just wanted to point out that one of the main benefits of shared libraries is that the same library instance in RAM can be used by multiple processes. May be I'm mistaken here, but that's my current, 2022_11, understanding. From speed point of view, the less RAM is needed, the greater the probability that what the CPU needs, is already at some CPU cache. With modern CPU caches that are multiple MiB in size, that "something" might be a whole small shared library or some part of it. Form speed point of view there's quite a bottle neck between CPU and RAM.
Thank You for reading my comment.