From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation Date: Wed, 29 Apr 2020 20:31:51 +0000 Message-ID: References: <868siem9c5.fsf@pipapo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="75790"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 40969@debbugs.gnu.org To: ct@pipapo.org (Christian =?UTF-8?Q?Th=C3=A4ter?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 29 22:33:44 2020 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 1jTtOo-000JX6-TW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Apr 2020 22:33:42 +0200 Original-Received: from localhost ([::1]:33198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTtOn-0007pS-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Apr 2020 16:33:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTtNx-0006qw-6M for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 16:33:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTtNC-0002GX-Bx for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 16:32:48 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33238) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTtNB-0002GS-WC for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 16:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTtNB-0006R6-QL for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 16:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2020 20:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40969 X-GNU-PR-Package: emacs Original-Received: via spool by 40969-submit@debbugs.gnu.org id=B40969.158819231524728 (code B ref 40969); Wed, 29 Apr 2020 20:32:01 +0000 Original-Received: (at 40969) by debbugs.gnu.org; 29 Apr 2020 20:31:55 +0000 Original-Received: from localhost ([127.0.0.1]:44784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTtN5-0006Qm-H1 for submit@debbugs.gnu.org; Wed, 29 Apr 2020 16:31:55 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:62768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTtN3-0006Qc-8q for 40969@debbugs.gnu.org; Wed, 29 Apr 2020 16:31:54 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 03TKVqAN002200 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 29 Apr 2020 20:31:52 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03TKVpMB001268; Wed, 29 Apr 2020 20:31:51 GMT In-Reply-To: <868siem9c5.fsf@pipapo.org> ("Christian =?UTF-8?Q?Th=C3=A4ter?="'s message of "Wed, 29 Apr 2020 20:32:26 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:179356 Archived-At: ct@pipapo.org (Christian Th=C3=A4ter) writes: > I notice that when I 'org-reload' C-c C-x ! then the whole > compilation starts again even when its already compiled. Somewhere it > misses that. I didn't investigate this any further. Maybe its intended > behavior because org-mode forces to byte-compile itself. > > Might be smarter to store a hash over the source .el or .elc in the .eln > metadata and prevent recompilation when it was already compiled. In fact > all .eln could be addressed by these hashes with some directory > restructuring (I dont go into detail here, this would be another > feature). Hi Christian, I assume deferred-compilation is non nil. I managed to reproduce the issue and 02e3ffad6d solves it for me. The only thing I'm uncertain is if generally speaking we should disable the deferred compilation trigger when a load with MUST-SUFFIX non-nil is performed. Currently we are not doing that but I'm asking myself if this would be appropriate. Thanks Andrea --=20 akrl@sdf.org