Deutsch English Français Italiano |
<vaai3c$22g6$2@gal.iecc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: libraries, was Article on new mainframe use Date: Fri, 23 Aug 2024 17:49:32 -0000 (UTC) Organization: Taughannock Networks Message-ID: <vaai3c$22g6$2@gal.iecc.com> References: <v9iqko$h7vd$1@dont-email.me> <va88rq$ioap$1@dont-email.me> <va8sji$otgt$5@dont-email.me> <va9dt6$r72m$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 23 Aug 2024 17:49:32 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="68102"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <v9iqko$h7vd$1@dont-email.me> <va88rq$ioap$1@dont-email.me> <va8sji$otgt$5@dont-email.me> <va9dt6$r72m$1@dont-email.me> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine) Bytes: 2120 Lines: 21 According to BGB <cr88192@gmail.com>: >But, I was left thinking, some programs use SQLite, which exists as a >single giant C file. I guess it technically works, but has the downside >of adding something like IIRC around 900K or so to the size of the >binaries' ".text" section. Take a look at the libraries any typical program links to these days. Only one megabyte? That's nothing. Keep in mind that the libraries are demand paged into the program's address space and usually the linker only resolves call addresses on the first call so if you only use a little bit of the library, it only links and maps a little bit of it so the load depends on what you use, not the total size of the library. On my BSD system the mail daemon forks and maps in about 20 shared libraries for each message and the startup time is still so fast it's not noticable. -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly