From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UC5RCPetI2d7xQAAe85BDQ:P1 (envelope-from ) for ; Thu, 31 Oct 2024 16:19:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UC5RCPetI2d7xQAAe85BDQ (envelope-from ) for ; Thu, 31 Oct 2024 17:19:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Seal: i=1; s=key1; d=yhetil.org; t=1730391542; a=rsa-sha256; cv=none; b=nYcKvGRuKtb5HM4ooz3vhuryBH7ryJMBgWd3shjRlfAsWgGtaSi2NyZkyz4Q6vMSQrHuB9 XByyYGKYuabjKlM1DTCZexayJyt3k5L2D15f71WqgvdNs1DXt9aWhNT/21TdeWVYKKslxj fNbY/I0nCd4inoUZqYDlPHYe8HWXKn7Gyko5lO4TSoCupyverjvKhsRoqo1EiaTP+E1qmn sTgFkkspe3dz7VyJj4Cr/53bDKUiwxSJgdyEEb1aDB+x4fyEpZd/WxxIXeDQUbbPo21Qg/ 1ev4g2EGBaW0x4AtPPBIIQ8zSBI8xSf8AmRJckvuBo9wMKYvL3jpMFrHo2mkcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=1730391542; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=/i/fSKAxtH8PINqai3ty1rtoqZG8IRhEgXoPQQtvDss=; b=j7FXTVjD4GEJPO9V7mgWb9BzCiRxQxm0cI0XVf7nsCPkdOuq4JyOlDVN9OReH4DPI3hrGX DPdXOnWNaOM+aweqOnDfBO7s76S6pHz8FMHdZwZk2OBYxYQxFiaXmRNWJCoaHdpSyDT5tO xgtT5yitZUyqL5Rr4yWjjXY7r4Ii9+cCDPl5Qb7UcEsZXA8JaSG8usubhTMY43ibtR5YYG 3kFwZiG+ncKfRPJ+jJ6PuF6LYcY/vnwpxsblChCP4omgiWg/Crx6yDXdmqNYrHj6vUpGOW evXSVzh8DNnlUcQhKk3PktBaUHdWLOS+5HeA6AwZB2aGgtNlSYD+g8Cdf9mGsw== 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 C1EBC7F8A5 for ; Thu, 31 Oct 2024 17:19:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Xsb-0007Ha-1z; Thu, 31 Oct 2024 12:18:37 -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 1t6XsY-0007Gg-B0 for guix-devel@gnu.org; Thu, 31 Oct 2024 12:18:34 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6XsW-0001K1-Je for guix-devel@gnu.org; Thu, 31 Oct 2024 12:18:34 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1t6XsT-0001n5-5w for guix-devel@gnu.org; Thu, 31 Oct 2024 17:18:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: guix-devel@gnu.org Subject: Re: Including code in a non-Guile language into Guix Date: Fri, 01 Nov 2024 00:15:45 +0800 Message-ID: <877c9o6yfi.fsf@whispers-vpn.org> References: <87ldy4e4ub.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:Qbe5Jq6ejbl7/IV9YKuH6X4XSrI= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gcggd-guix-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Reply-to: Runciter From: Runciter via "Development of GNU Guix and the GNU System distribution." 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 X-Migadu-Spam-Score: -2.95 X-Spam-Score: -2.95 X-Migadu-Queue-Id: C1EBC7F8A5 X-Migadu-Scanner: mx10.migadu.com X-TUID: jVBMmL8sGb3F Suhail Singh writes: > Daniel Littlewood writes: > >> guix pull ("38k new commits"): 21m45s >> guix pull immediately after: 2m25s >> guix shell emacs (fresh): 1m49s >> ... >> >> nix-channel --update: 0m23s >> nix shell -p emacs (fresh): 0m24s > > Those are some interesting comparisons. Is the reason guix pull takes > so long as compared to updating nix-channel primarily due to the > authentication of commits? Or something else? As far as the local machine computations go, clearly, authenticating the commits is not the bottleneck. On all machines, indexing the received git objects locally is much longer than authenticating the commits. On my X60, when I pull for the first time after I delete the cache, the indexing step alone takes more than 40 minutes. The 2m25s that Daniel had for his second git pull, that had to be spent mostly on computing the Guix derivation. This time is in large part in-compressible I guess. Not that I know of a lot about this, but by reading the output, it's clear that every time guix pull has to compute the whole derivation of the latest commit of all the channels. Apparently, in a pull where Guix determines that it has nothing to do, this step is required before Guix can make the determination that it has nothing to do...