GNU bug report logs - #40969
28.0.50; [feature/native-comp] unnecessary recompilation

Previous Next

Package: emacs;

Reported by: ct <at> pipapo.org (Christian Thäter)

Date: Wed, 29 Apr 2020 19:09:01 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40969 in the body.
You can then email your comments to 40969 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#40969; Package emacs. (Wed, 29 Apr 2020 19:09:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to ct <at> pipapo.org (Christian Thäter):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 29 Apr 2020 19:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ct <at> pipapo.org (Christian Thäter)
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [feature/native-comp] unnecessary recompilation
Date: Wed, 29 Apr 2020 20:32:26 +0200
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#40969; Package emacs. (Wed, 29 Apr 2020 20:32:01 GMT) Full text and rfc822 format available.

Message #8 received at 40969 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: ct <at> pipapo.org (Christian Thäter)
Cc: 40969 <at> debbugs.gnu.org
Subject: Re: bug#40969: 28.0.50;
 [feature/native-comp] unnecessary recompilation
Date: Wed, 29 Apr 2020 20:31:51 +0000
ct <at> pipapo.org (Christian Thäter) 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

-- 
akrl <at> sdf.org




Reply sent to Andrea Corallo <akrl <at> sdf.org>:
You have taken responsibility. (Thu, 30 Apr 2020 19:29:02 GMT) Full text and rfc822 format available.

Notification sent to ct <at> pipapo.org (Christian Thäter):
bug acknowledged by developer. (Thu, 30 Apr 2020 19:29:02 GMT) Full text and rfc822 format available.

Message #13 received at 40969-done <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: ct <at> pipapo.org (Christian Thäter)
Cc: 40969-done <at> debbugs.gnu.org
Subject: Re: bug#40969: 28.0.50;
 [feature/native-comp] unnecessary recompilation
Date: Thu, 30 Apr 2020 19:28:54 +0000
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 <at> sdf.org




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 May 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.