From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Speeding up the bootstrap build - a quick hack. Date: Tue, 18 Jan 2022 13:36:40 -0500 Message-ID: References: <87pmopp4jy.fsf@gmail.com> <87ee55p1wr.fsf@gmail.com> <875yqhp0w1.fsf@gmail.com> 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="39463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 18 20:02:43 2022 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 1n9tkh-000A4Z-FI for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 20:02:43 +0100 Original-Received: from localhost ([::1]:47502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9tkf-000546-HG for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Jan 2022 14:02:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9tLh-0002GB-Fr for emacs-devel@gnu.org; Tue, 18 Jan 2022 13:36:53 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:26240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9tLf-0001eQ-1r for emacs-devel@gnu.org; Tue, 18 Jan 2022 13:36:52 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F409744253A; Tue, 18 Jan 2022 13:36:48 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8BF2A442528; Tue, 18 Jan 2022 13:36:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1642531007; bh=CoZcYl8EyAo1kO1BByVDWyjowEL9m1V/0V3RsNg4afg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MKZVui3RoqZp0XXvF3l88ijEgmyvdkfxJ9JVJyf8YKpywv2eoJaYmAh6c8d7x6dHC s1x1fSfb6Qv5dOEnLoPwfErbXo9qqy8phU0jgTe9nehBToBszfx7XVN49u0zHfG39d wQwhucEprX4F9vWsE7jmMBb3xcAGhub7VNTYmh5DZfV8XWFu5UV0OqMEP/PG1x4AwE Cn44T3HKwLs+OjQpTigwCanSK7/pqq2cwinxQCPzqhtx+ZPmRlYc15y5/5odP36NGw tEBi+GqgLbaiBLXqEcsYMN9jm2NJcyPTnUicrgaJBBd7loKC4+s4mkgmWoZbQYKiH4 8Wsb9rw/KSrhQ== Original-Received: from ceviche (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 13CB412015D; Tue, 18 Jan 2022 13:36:47 -0500 (EST) In-Reply-To: <875yqhp0w1.fsf@gmail.com> (Robert Pluim's message of "Tue, 18 Jan 2022 15:35:42 +0100") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:284943 Archived-At: > There=CA=BCs no other file or directory name that contains that hash? Cou= ld > we do a dummy compile of an empty .el using the native compiler and > derive the hash from that? (and then compile the native compiler with > the byte compiler). AFAIK, currently the file name is computed by a function in `comp.el`, so without further hacking, it requires a compiled src/temacs and it requires loading `comp.el` (which itself requires loading a whole bunch of other files) which takes a fairly long time in and of itself when they're not byte-compiled yet. Maybe there's another solution: generate both the real .eln file with the funny hash-complete name and a hardlink/symlink/copy at an easily-predictable place. Then Make can use that easily-predictable name to keep track of dependencies. But in any case, until we've sorted that out, Alan's approach seems sane enough and brings a welcome speed improvement (especially welcome when working on the bootstrap itself). Stefan