From unknown Sun Jun 22 03:51:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40969 <40969@debbugs.gnu.org> To: bug#40969 <40969@debbugs.gnu.org> Subject: Status: 28.0.50; [feature/native-comp] unnecessary recompilation Reply-To: bug#40969 <40969@debbugs.gnu.org> Date: Sun, 22 Jun 2025 10:51:14 +0000 retitle 40969 28.0.50; [feature/native-comp] unnecessary recompilation reassign 40969 emacs submitter 40969 ct@pipapo.org (Christian Th=C3=A4ter) severity 40969 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 29 15:09:00 2020 Received: (at submit) by debbugs.gnu.org; 29 Apr 2020 19:09:00 +0000 Received: from localhost ([127.0.0.1]:44609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTs4p-0004Kp-VT for submit@debbugs.gnu.org; Wed, 29 Apr 2020 15:09:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:52884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTrVo-0003RV-Vk for submit@debbugs.gnu.org; Wed, 29 Apr 2020 14:32:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36866) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTrVo-0006ME-FI for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006g9-JA for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:48 -0400 Received: from mail.pipapo.org ([78.47.240.153]:59234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTrVn-0006fi-1q for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 14:32:47 -0400 Received: from hermes.pipapo.org (imap.pipapo.org [10.10.40.10]) by mail.pipapo.org (Postfix) with ESMTPS id 3AF8B5DC2F for ; Wed, 29 Apr 2020 18:32:41 +0000 (UTC) Received: from wolke (wolke.pipapo.org [10.100.20.10]) by hermes.pipapo.org (Postfix) with ESMTPS id BA66A9E001DE for ; Wed, 29 Apr 2020 18:32:40 +0000 (UTC) From: ct@pipapo.org (Christian =?utf-8?Q?Th=C3=A4ter?=) To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [feature/native-comp] unnecessary recompilation Date: Wed, 29 Apr 2020 20:32:26 +0200 Message-ID: <868siem9c5.fsf@pipapo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=78.47.240.153; envelope-from=ct@pipapo.org; helo=mail.pipapo.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/29 14:32:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 78.47.240.153 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 29 Apr 2020 15:08:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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). In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of 2020-04-26 built on wolke Repository revision: e6fb440ed7e48c2e8c4bba4666db2f0ff9950a25 Repository branch: native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure --with-nativecomp --with-cairo --enable-link-time-optimization --with-xwidgets' Configured features: XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS PDUMPER GMP Important settings: value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 29 16:31:55 2020 Received: (at 40969) by debbugs.gnu.org; 29 Apr 2020 20:31:55 +0000 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 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 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 Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03TKVpMB001268; Wed, 29 Apr 2020 20:31:51 GMT From: Andrea Corallo To: ct@pipapo.org (Christian =?utf-8?Q?Th=C3=A4ter?=) Subject: Re: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation References: <868siem9c5.fsf@pipapo.org> Date: Wed, 29 Apr 2020 20:31:51 +0000 In-Reply-To: <868siem9c5.fsf@pipapo.org> ("Christian =?utf-8?Q?Th=C3=A4ter?= =?utf-8?Q?=22's?= message of "Wed, 29 Apr 2020 20:32:26 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40969 Cc: 40969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 30 15:28:59 2020 Received: (at 40969-done) by debbugs.gnu.org; 30 Apr 2020 19:28:59 +0000 Received: from localhost ([127.0.0.1]:47726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUErj-0002TF-EZ for submit@debbugs.gnu.org; Thu, 30 Apr 2020 15:28:59 -0400 Received: from mx.sdf.org ([205.166.94.20]:52654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUErh-0002T6-4q for 40969-done@debbugs.gnu.org; Thu, 30 Apr 2020 15:28:57 -0400 Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 03UJStsE003206 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 30 Apr 2020 19:28:55 GMT Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03UJSsRp003086; Thu, 30 Apr 2020 19:28:54 GMT From: Andrea Corallo To: ct@pipapo.org (Christian =?utf-8?Q?Th=C3=A4ter?=) Subject: Re: bug#40969: 28.0.50; [feature/native-comp] unnecessary recompilation References: <868siem9c5.fsf@pipapo.org> Date: Thu, 30 Apr 2020 19:28:54 +0000 In-Reply-To: (Andrea Corallo's message of "Wed, 29 Apr 2020 20:31:51 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40969-done Cc: 40969-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I'm still not sure if we should switch off deferred compilation while loading with MUST-SUFFIX but given 02e3ffad6d solves this issue I'm closing the bug. Thanks Christian for reporting it. Andrea -- akrl@sdf.org From unknown Sun Jun 22 03:51:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 29 May 2020 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator