From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bootstrap speed Date: Sun, 02 Jan 2022 09:52:38 +0200 Message-ID: <83o84uefqx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 02 08:54:41 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 1n3vhP-0007v1-Q5 for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 08:54:39 +0100 Original-Received: from localhost ([::1]:54432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3vhN-0006i9-Uk for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Jan 2022 02:54:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vfS-0005iM-LK for emacs-devel@gnu.org; Sun, 02 Jan 2022 02:52:38 -0500 Original-Received: from [2001:470:142:3::e] (port=51180 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vfR-0000Xs-Rk; Sun, 02 Jan 2022 02:52:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0Xys31SH1QHC3OSPX3ikhPMJN7/OHnr4dy/9ifAENuE=; b=nc6+8FwcR5tr b197iHuLqWSXE2RCU5+8mXzIY4nN3s/4HLJ+KAmyXFz9Yqa+RGCKHPOokCGkhhML8bVQ80W7W6R3E LcDKuzr45zfE0KKX9PTlul4Jz7UvQ+rLWgg9zBBopVKzeprKDsDh02h9M4LH9CO+iclsNjICmFNqz io3FvkX3K6BbMRgB85dkbQ9UY34W78C16adWq3y6d3gvI9GVHe9mn3jEf2nKGG4z+4R6bfnlwzIPU q5k3fRrw9L4V1TRGJyET3nt3e1BYDyKkoOkq4YbKITUNcVwHTt2tCPRl8Ob+vejVjBCPjRJXcoYmW FBdgk8MTec/MyHTfi0Vceg==; Original-Received: from [87.69.77.57] (port=1507 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3vfR-0001Bo-OF; Sun, 02 Jan 2022 02:52:38 -0500 In-Reply-To: (message from Stefan Monnier on Sun, 02 Jan 2022 00:44:33 -0500) 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:283860 Archived-At: > From: Stefan Monnier > Date: Sun, 02 Jan 2022 00:44:33 -0500 > > With the native compiler, I get the impression that the compilation from > `.el` to `.elc` files is faster but I also see that we spent an insane > amount of time in: > > ELC+ELN emacs-lisp/macroexp.elc > ELC+ELN emacs-lisp/cconv.elc > ELC+ELN emacs-lisp/byte-opt.elc > ELC+ELN emacs-lisp/bytecomp.elc > ELC+ELN emacs-lisp/comp.elc > ELC+ELN emacs-lisp/comp-cstr.elc > > right after the first dump. Yes. See bug#48921. (comp.el is the worst offender in the above group.) Sadly, we didn't make any tangible progress in that matter since the bug was filed. > I suspect this can be sped up significantly if we did something like: > > ELC emacs-lisp/macroexp.elc > ELC emacs-lisp/cconv.elc > ELC emacs-lisp/byte-opt.elc > ELC emacs-lisp/bytecomp.elc > ELC emacs-lisp/comp.elc > ELC emacs-lisp/comp-cstr.elc > ELN emacs-lisp/macroexp.elc > ELN emacs-lisp/cconv.elc > ELN emacs-lisp/byte-opt.elc > ELN emacs-lisp/bytecomp.elc > ELN emacs-lisp/comp.elc > ELN emacs-lisp/comp-cstr.elc > > Instead. Please time that (including in parallel builds), maybe it's a good speedup. But note that this might require non-trivial changes to the Makefile's, since the rules we currently use for native compilation are kludgey workarounds due to the fact that we cannot easily explain to Make when *.eln files need to be regenerated.