From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#74382: `compile-first` Make rule is no longer using `load-prefer-newer` Date: Wed, 11 Dec 2024 14:19:45 +0300 Message-ID: <6f35390cfd212027cf67fd697dcdc9c1a5ec6edc.camel@yandex.ru> References: <6bc3a410f0857c3e3433070ac19deaf7eae88c63.camel@yandex.ru> <86y11jf8kd.fsf@gnu.org> 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="33333"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.54.1 Cc: acm@muc.de, 74382@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 12:20:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tLKlV-0008RE-Lb for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 12:20:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLKlD-0001Yr-1n; Wed, 11 Dec 2024 06:20:07 -0500 Original-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 1tLKlA-0001Y0-Au for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:20:05 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLKl8-0006WN-JY for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:20:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=qsJVhDBs0wi7rd7Bda/vjjWiArAJLIUInEfHrLE7w1o=; b=ntMxWykY8tPRsS09Y92OZDE8Pd2vcGCLDxVjp3QlE9ztLa/sunMUSjG4hD+aKKvHnnqOITaNvmBUYThRzb+3QK034Igllp6sAfDc4Lufe7nHxMriNaPSjyamKYjV66PnDfP9kSXRzTApeKl2aD0aupespGVXAhO3y6uv8HDts9T8TVLc3uASZhWbGPbBbKJrnEmx9KNCUz5WrMRR/MnU7ehm8+1c4FsTJidJNXEkiHRwUMzTAreDMqy7HR4RFNFj+75QSE1FwB/8pKHYZzEGvJqfuVl5zyk7MJFYqt6e+nvwU2Typ1sm1EHWhyXuUouLJ3NfPAD0E4KhJjevfGsA7g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLKl8-00085N-29 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2024 11:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74382 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 74382-submit@debbugs.gnu.org id=B74382.173391599631051 (code B ref 74382); Wed, 11 Dec 2024 11:20:01 +0000 Original-Received: (at 74382) by debbugs.gnu.org; 11 Dec 2024 11:19:56 +0000 Original-Received: from localhost ([127.0.0.1]:33214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLKl2-00084k-A5 for submit@debbugs.gnu.org; Wed, 11 Dec 2024 06:19:56 -0500 Original-Received: from forward501b.mail.yandex.net ([178.154.239.145]:54306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLKkz-00083y-8b for 74382@debbugs.gnu.org; Wed, 11 Dec 2024 06:19:54 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net [IPv6:2a02:6b8:c11:992:0:640:7835:0]) by forward501b.mail.yandex.net (Yandex) with ESMTPS id 856176153E; Wed, 11 Dec 2024 14:19:46 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id jJljuEFOha60-fCNj4G8b; Wed, 11 Dec 2024 14:19:46 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1733915986; bh=qsJVhDBs0wi7rd7Bda/vjjWiArAJLIUInEfHrLE7w1o=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=PmpDFoKeFa/0Q/hbl/0G2LKi0IToLHMsrCxaWvj3ck9VygQnm9e2JqJLNSeyHQ48Q Byc+vLPZ5x2MQ0d/3TJSBuYJ7VU+RrS7K/BZJ0Xs0ZM5+bZ3UkHyrwxr03I1Dr+Itk V3gcsWHHgapGmlkWkdfZYhPkToaEYfb89TTn6YrY= Authentication-Results: mail-nwsmtp-smtp-production-main-25.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <86y11jf8kd.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296817 Archived-At: On related note, I am wondering if it may be better to compile `COMPILE_FIR= ST` files all at once? I haven't found any robust way to measure building time of COMPILE_FIRST-on= ly files as part of the build system, via some sort of invocation like `make -C lisp SOMETHING`. So instead I tested by invoking buliding command manually from the `build/l= isp` dir like they would be invoked by Make. And I found x2.5 improvement in build t= ime! Testing old behavior: $ find ../../ -type f -name "*.elc" -delete $ time for f in ../../lisp/emacs-lisp/macroexp.el ../../lisp/emacs-lisp= /cconv.el ../../lisp/emacs-lisp/byte-opt.el ../../lisp/emacs-lisp/bytecomp.= el ../../lisp/emacs-lisp/comp.el ../../lisp/emacs-lisp/comp-cstr.el ../../l= isp/emacs-lisp/comp-common.el ../../lisp/emacs-lisp/comp-run.el; do ../src/= bootstrap-emacs -batch --no-site-file --no-site-lisp -l comp -f batch-byte-= compile $f; done real 1m38.932s user 1m38.684s sys 0m0.116s Testing "compile all at once": $ find ../../ -type f -name "*.elc" -delete $ time ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp -l c= omp -f batch-byte-compile ../../lisp/emacs-lisp/macroexp.el ../../lisp/emac= s-lisp/cconv.el ../../lisp/emacs-lisp/byte-opt.el ../../lisp/emacs-lisp/byt= ecomp.el ../../lisp/emacs-lisp/comp.el ../../lisp/emacs-lisp/comp-cstr.el .= ./../lisp/emacs-lisp/comp-common.el ../../lisp/emacs-lisp/comp-run.el real 0m39.970s user 0m39.896s sys 0m0.024s