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:21:06 +0300 Message-ID: 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="1934"; 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:22:19 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 1tLKnL-0000Jm-Ec for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 12:22:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLKn7-0001rP-9q; Wed, 11 Dec 2024 06:22:05 -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 1tLKn4-0001r8-Dv for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:22:02 -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 1tLKn4-0006wc-5P for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:22: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=IUDjBZIqVrk4v2Bq4hABrsftXYfwTqfbDFWR2ePeMs8=; b=LsrmMYj/CYy36RQIW2dYtGF5wn74fg6TxVH2+uWPlbwlWiJW17Oa2dUJiYc3CV/0I4Pk+9aX2xNc3/UC9LUTXrsbTqN7wHhrvLRT/V9tvqPg0XHLSqHaFrW/rrn3G/THJZEhi/m+CG7LQCEV1QMWHWYPq+4jN+S1AGYMhBFYhiuYu9SdTXzoC45Q9G6AJzys5mmE4qfmv482WsNsOTU6W42uzlz9Ws/n8jCq5+T87WaYlzLHbJ2StAmlU7JbCn0RfDsDYbzPlwdvWEdJpNiHGA/N3CChkFsfealo88uLD/H3bF8vvShIwkU3HAYlwswPJb9a8muUcl+bjjnuP4xOcg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLKn3-0008Jb-Uk for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 06:22:01 -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:22: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.173391610531897 (code B ref 74382); Wed, 11 Dec 2024 11:22:01 +0000 Original-Received: (at 74382) by debbugs.gnu.org; 11 Dec 2024 11:21:45 +0000 Original-Received: from localhost ([127.0.0.1]:33222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLKmm-0008IJ-TP for submit@debbugs.gnu.org; Wed, 11 Dec 2024 06:21:45 -0500 Original-Received: from forward502a.mail.yandex.net ([178.154.239.82]:47940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLKml-0008Ho-Jf for 74382@debbugs.gnu.org; Wed, 11 Dec 2024 06:21:44 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1d:3d20:0:640:8692:0]) by forward502a.mail.yandex.net (Yandex) with ESMTPS id 6A05C60CBA; Wed, 11 Dec 2024 14:21:07 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-49.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 6Ll1kpFOcqM0-jRJQV6WN; Wed, 11 Dec 2024 14:21:07 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1733916067; bh=IUDjBZIqVrk4v2Bq4hABrsftXYfwTqfbDFWR2ePeMs8=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=fiGa5YLD7zgFl0p2FhF9OudS5srFAGzengK2VmXMGZ1kMGFeUZau7nJcsEQ5f5hSI xcrDYtoJR5Hj0NrXcXgnGYiOooXKZ27hZvvYpgRVygTRz09fbfD9XgWX0HvduFMNxE xkHsbNsW/ShcyuJtiwrkJdETuaVAwhjKpvj01fTw= Authentication-Results: mail-nwsmtp-smtp-production-main-49.vla.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:296818 Archived-At: (sorry, forgot to click "reply all", resending) 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