On Mon, 8 Dec 2025 13:38:57 +0200 Konstantin Belousov <[email protected]> wrote:
> But there are other benefits from linking the libraries dynamically. > E.g. the same (?) user shed crocodile tears over memory usage by 64bit > system, and linking libllvm dynamically exactly reduces the memory > profile by sharing significant part of text for cc, lld, and minor > binutils. > User can buy more ram but can not buy more time/speed. (in case single thread configure/build) Also, it looks like even dyn linked llvm can work faster: I do some additional bencharks https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287447 and dyn linked devel/llvm19 work 4+x faster than dyn linked llvm from base. (that is the reason that no one report before that it works very slow - it is less than 2x slower that it can be) Probably in base llvm have some PIE/addr randomisation enabled that drop down speed dramatically: -4x in some case.
