From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mathieu Othacehe Newsgroups: gmane.comp.gnu.guix.devel,gmane.lisp.guile.devel Subject: Re: The size of =?utf-8?B?4oCYLmdv4oCZ?= files Date: Sat, 06 Jun 2020 10:20:44 +0200 Message-ID: <87r1usli5f.fsf@gnu.org> References: <875zc5z18d.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="ciao.gmane.io:159.69.161.202"; logging-data="64026"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: guix-devel , Guile Devel To: Ludovic =?utf-8?Q?Court=C3=A8s?= Original-X-From: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sat Jun 06 10:25:35 2020 Return-path: Envelope-to: gcggd-guix-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 1jhU90-000Ga7-Sx for gcggd-guix-devel@m.gmane-mx.org; Sat, 06 Jun 2020 10:25:34 +0200 Original-Received: from localhost ([::1]:39884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhU8z-0007Bv-Un for gcggd-guix-devel@m.gmane-mx.org; Sat, 06 Jun 2020 04:25:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhU4P-0008PX-2t; Sat, 06 Jun 2020 04:20:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57925) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhU4M-00011O-Pf; Sat, 06 Jun 2020 04:20:46 -0400 Original-Received: from [2a01:e0a:fa:a50:809b:e323:9e90:279b] (port=37738 helo=meru) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhU4M-0005CJ-8a; Sat, 06 Jun 2020 04:20:46 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Original-Sender: "Guix-devel" Xref: news.gmane.io gmane.comp.gnu.guix.devel:54455 gmane.lisp.guile.devel:20533 Archived-At: Hey Ludo, > $ guix size $(readlink -f /run/current-system) | head -5 > store item total = self > /gnu/store/4d0p06xgaw8lqa9db0d6728kkba8bizj-qemu-5.0.0 1651.6 = 745.2 18.8% > /gnu/store/abiva5ivq99x30r2s9pa3jj0pv9g16sv-guix-1.1.0-4.bdc801e 468.0 = 268.8 6.8% > /gnu/store/111zp1qyind7hsnvrm5830jhankmx4ls-linux-libre-5.4.43 243.6 = 243.6 6.2% > /gnu/store/skxkrhgn9z0fg9hmnbcyfdgzs5w4ryrr-llvm-9.0.1 199.9 = 128.5 3.2% When building a bare-bones Guix System disk-image, "Guix", "Guile" and "Guile-static" represent 331M of .go files, see: --8<---------------cut here---------------start------------->8--- find /gnu/store/fvvpmrgnvr9jqxfn5m956xblisa8vzr4-guix-1.1.0-4.bdc801e /gnu/store/ljcrz0d86r20phszvj6s1mdyjchz79ja-guile-static-stripped-3.0.2 /gnu/store/18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2-name "*.go" -print0| du --files0-from=3D- -hc |tail -n1 --8<---------------cut here---------------end--------------->8--- If we compare it to the 943M of the "reduced" image I'm working on, it makes around 1/3 of the final image. > With 3.0.3-to-be and -O1, python-xyz.go weighs in at 3.4=C2=A0MiB instead= of > 5.9=C2=A0MiB! Here=E2=80=99s the section size distribution: Wooh, interesting! Having a lighter disk-image isn't very important on desktop, but for the embedded devices with small eMMC, any improvement would be really welcome :) Thanks, Mathieu