From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mHpfH8PccGRsewAASxT56A (envelope-from ) for ; Fri, 26 May 2023 18:22:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gHwMH8PccGQJ2QAAauVa8A (envelope-from ) for ; Fri, 26 May 2023 18:22:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5C8CF1FECF for ; Fri, 26 May 2023 18:22:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2aCB-00009Y-6J; Fri, 26 May 2023 12:21:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2aC9-00008v-LK for guix-devel@gnu.org; Fri, 26 May 2023 12:21:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2aC8-0005AW-Pt; Fri, 26 May 2023 12:21:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Eo+CodwL+ifJI+Oto8/ijTA+rV1KRD9dVcHmlRN6Kis=; b=BkMzYc+mn0C4ME+atJlk QFYK5NhjTmK2BHYGBd27wQC1OMx0Xp1ZzFVn0ritDZ6qjJGftQgbHAyJIQraznIHcnbXgshL7EV3g TsYzZcqT47+rpTFSfVJRzJeIY7GgEFmmdfpk71xJZFlINkHK6brtDyciVhq2BdKchPBONhEuulCt/ ehhayzeWSwfECpfuIc4PlP+yy8ShFkzLGZFfFfyMdJbgC/Eo/EuUZc5aYnv9yqmzsh+QysIvFTvNh snFDY3iPdpqd8Jy87MdbR0Gf2eQ5jdjJAy51WbZ8kwTzuheFfQ/i2CHki7yYyuvyOJvsw6jjNvtys aplOWSNkK4osTg==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2aC8-000775-Ch; Fri, 26 May 2023 12:21:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Tournier Cc: Guix Devel , Andreas Enge Subject: Re: How many bytes do we add (closure of guix) when adding one new package? References: <875y9jzl9m.fsf@gnu.org> <874jot19fd.fsf_-_@gnu.org> <87fs7rvv5s.fsf_-_@gnu.org> <878rddooy4.fsf@gnu.org> <87r0r4uv4x.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 7 Prairial an 231 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour du Fromental X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 26 May 2023 18:21:34 +0200 In-Reply-To: <87r0r4uv4x.fsf@gmail.com> (Simon Tournier's message of "Thu, 25 May 2023 20:24:30 +0200") Message-ID: <87ttvzhxm9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685118147; a=rsa-sha256; cv=none; b=ddjhE5MGPY7DGkB+9zGLaL2dP2JC7tatQMlwjCzqY2n56H4rAwfJy04MkcQq8Cyiqke18V bbguAXydOKAaP9EWfa8mFR3UnGysF5KS5f2IclUnLCc4fhK1XJimLPX4V1McjzqR4NMJMO ZSywaMF8nfC4SZuxn2VE0V8BxWY0lpGPVDxICS1eGNDmRKBazVYg12q2cXT9HOzehCsj2n ERLH95b4pq8vHXp/miY/jbdQaE4SP/3HhCuGeQOOHLBq3SvS3hXyAl31t9L/l+/NPf7GfP RP7nMxgK7oXf60aRk2RHfx9K4fEFnlqZfx6vDl1blYVsP7Ubdg3NGYjlpVg8qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BkMzYc+m; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685118147; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Eo+CodwL+ifJI+Oto8/ijTA+rV1KRD9dVcHmlRN6Kis=; b=Ily/XuNZwDhnUe36zhBaiCgvoMDQNovhe0RKm/jfCItix0ArA/c+blQrPbtfiv+NUVcEq0 bOev6c0CL6xY5vXS+zsJLybHQ2lQHs0IUPBRPV1//kI2/SNCfeDiJBRUOVZHvTpspuz2dq MJonDo4LYqow9emMqY3XvTqVA/qwBaKiF3hDkvZpRJVyMrSFUc24ky1U5oR2G+KMEZFGp4 /7Ze2QioXx6qsbUhBc2nTizCTPo29AYb+IVFbqVK8mpdcNIDBEkKjKr6Cn0bbl3y+WlXkA T8gRRVX0xX8S9a8qZyIc9aJErwN3GmKRecCKHalUlJZwRXzFmxpRoiZhAc1nCQ== X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-Migadu-Queue-Id: 5C8CF1FECF X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BkMzYc+m; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-TUID: 8/tzNL1t+Xup Hello! Thanks for the detailed analysis! Simon Tournier skribis: > Conclusions: > > 1. the addition of one package leads to an increase of ~ 12 KiB > > 2. the core of Guix is about ~ 62 MiB > > 3. doubling the number of packages is doubling the size to download at > =E2=80=9Cguix pull=E2=80=9D time. I agree that .go files are quite big (.scm files as well, but we=E2=80=99ve improved information density somewhat by removing input labels :-)). The size of .go files went down when we switch to the baseline compiler (aka. -O1): https://lists.gnu.org/archive/html/guix-devel/2020-06/msg00071.html That thread has ideas of things to do to further reduce .go size. Download size has to be treated separately though. For example, =E2=80=98g= it pull=E2=80=99 doesn=E2=80=99t redownload all of the repo or directory, and = it uses compression heavily. Thus, a few hundred bytes of additional .scm text translate in less than that. As for the rest, download size can be reduced for example by choosing a content-address transport, like something based on ERIS. I think we must look precisely at what we want to optimize=E2=80=94on-disk = size, or bandwidth requirement, in particular=E2=80=94and look at the whole solut= ion space. My 2=C2=A2! Ludo=E2=80=99.