From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alexandre Garreau Newsgroups: gmane.emacs.devel Subject: Re: persistent data feature Date: Sat, 11 Dec 2021 21:47:16 +0100 Message-ID: <5021161.QSTPhSqbXE@galex-713.eu> References: <87tufmjyai.fsf@gnus.org> <875yrvgchu.fsf@logand.com> <83sfuyq4oo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32490"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii To: Tomas Hlavaty , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 11 21:48:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mw9Hk-0008HY-Kz for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Dec 2021 21:48:00 +0100 Original-Received: from localhost ([::1]:60142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mw9Hj-0003uY-0S for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Dec 2021 15:47:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw9HA-0003G6-TZ for emacs-devel@gnu.org; Sat, 11 Dec 2021 15:47:24 -0500 Original-Received: from [2a00:5884:8305::1] (port=36436 helo=galex-713.eu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mw9H8-0003XK-4N; Sat, 11 Dec 2021 15:47:23 -0500 Original-Received: from gal by galex-713.eu with local (Exim 4.94.2) (envelope-from ) id 1mw9H2-001ifA-UF; Sat, 11 Dec 2021 21:47:16 +0100 In-Reply-To: <83sfuyq4oo.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:5884:8305::1 (failed) Received-SPF: pass client-ip=2a00:5884:8305::1; envelope-from=galex-713@galex-713.eu; helo=galex-713.eu X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281707 Archived-At: Le sabato, 11-a de decembro 2021, 21-a horo kaj 15:03 CET Eli Zaretskii a=20 =C3=A9crit : > > From: Tomas Hlavaty > > Date: Sat, 11 Dec 2021 20:36:29 +0100 > >=20 > > Also I find the trend of linking everything into the emacs process >=20 > > concerning: > What's the alternative? to reinvent all the wheels in Emacs's own > code? to use external programs? something else? Rejecting a trend for > which there are no better alternatives is not smart. >=20 > > $ ldd .emacs-27.2 | wc -l > > 107 >=20 > Did you try comparing this with other similar applications? Actually ldd shows the recursive dependencies (it runs the program) rather= =20 than the direct dependencies, it would be more fair to use readelf for=20 that purpose (and readelf also doesn=E2=80=99t requires you to run the prog= ram, so=20 it=E2=80=99s a safe habit that prevents security issues): gal@galex-713:~$ readelf -d /usr/bin/emacs | grep -c NEEDED 44 gal@galex-713:~$ readelf -d /usr/bin/nano | grep -c NEEDED 3 gal@galex-713:~$ readelf -d /usr/bin/nano | grep -c NEEDED 3 gal@galex-713:~$ readelf -d /usr/bin/zile | grep -c NEEDED 5 gal@galex-713:~$ readelf -d /usr/bin/vim.tiny | grep -c NEEDED 4 gal@galex-713:~$ readelf -d /usr/bin/vim.nox | grep -c NEEDED 13 gal@galex-713:~$ readelf -d /usr/bin/vim.gtk3 | grep -c NEEDED 27 gal@galex-713:~$ readelf -d /usr/bin/pluma | grep -c NEEDED 18 gal@galex-713:~$ readelf -d /usr/bin/gedit | grep -c NEEDED 5 gal@galex-713:~$ readelf -d /usr/bin/kwrite | grep -c NEEDED 16 gal@galex-713:~$ readelf -d /usr/bin/kate | grep -c NEEDED 27 gal@galex-713:~$ readelf -d /usr/bin/codeblocks | grep -c NEEDED 15 We can however observe that, by direct usage, emacs is more demanding than= =20 other similar software. Even though, in practice, it is pretty similare=20 in memory footprint since, indirectly, it requires pretty much the same=20 (essentially graphical) libraries as other similar graphical software.