From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Guix size reduction work group Date: Sat, 08 Feb 2020 17:43:28 +0100 Message-ID: <875zghdo7j.fsf@ambrevar.xyz> References: <87pneul50i.fsf@ambrevar.xyz> <87blqdnjuv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50685) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0TCg-0000st-QY for guix-devel@gnu.org; Sat, 08 Feb 2020 11:43:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0TCf-0008G5-Fz for guix-devel@gnu.org; Sat, 08 Feb 2020 11:43:34 -0500 In-Reply-To: <87blqdnjuv.fsf@gnu.org> 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 Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi! > > Pierre Neidhardt skribis: > >> Shall we start a work group to fix the issue? >> >> - Write a blog article to explain the issue and a detailed process on >> how to fix it. (Embed it to the manual.) > > The =E2=80=9CSubmitting Patches=E2=80=9D section mentions closure size sp= ecifically. Is > there anything you think we should add there? It does not give much details, e.g. the ones that Julien mentioned. Also I don't think `guix size' is enough, see below. >> - Improve the tooling. In my experience, guix graph is quickly unusable >> with a high number of nodes. Maybe d3.js could be leveraged to add a >> filtering system, or a way to click on nodes to hide them and all >> their children. > > =E2=80=98guix size=E2=80=99 is key here: it=E2=80=99s a profiler, exactly= what we need IMO. > WDYT? Maybe I'm missing something, but in general I think that guix size only gives a birds eye view and does not allow for closer inspection. Say FOO has BAR in its closure, but not in the explicit inputs, how can I figure out which of the indirect inputs drags BAR in? With an extensive guix graph, it quickly becomes impossible to follow the millions of arrows. What I'd like to have is an interactive graph that I can trim to links between given nodes. This would allow me to ask "give me the dependency chain that links FOO and BAR". > The thing is, I think it=E2=80=99s something that requires constant care,= every > time we add a package or modify an existing one. It=E2=80=99s very easy = to lose > benefits that had been previously obtained through hard work! This is a good point. "Adding" a package is less critical since it does not impact the closure size of the rest. For "updates" maybe we could leverage the continuous integration to flag a warning when a new build has increased the size of the package compared to a previous build by some threshold. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl4+5TAACgkQm9z0l6S7 zH/oWwgAnUPeeIse4QNc/4S9QaQ9/ghllczplcfmWCwzSsd6sZx2j5Mzzy4cL5bq 1qucW+jworQpLFCDCH8C6nymUuW4ELmiUvt0584N8iUCH8wymVDmETw2GUIhBAWq kpKf/4pzI1xQ22tsyj3+o4e/n7f11MDbamnXH0rwfgOfsVvSxjb7dFExhcmLLxXv T0qQL9YMznUK5QaHmWQaVy2uPpIoUhwsXqZYMdIvSdn/UvbuGbc2ka1nJ4yMByhA N6TBthW3AsWbPYJlr02iowUDXLMbQCrjnhO+zg9CxCY2d7p+sfkSqViq9GAnUouF SezxPAPZVPhe1KVqvBluNx+4B+pi9Q== =SoSJ -----END PGP SIGNATURE----- --=-=-=--