Subject: bug#64712: 29.0.92; Emacs 29 with native compilation compiles cl-loaddefs.el on every startup

From: Andrea Corallo <[email-masked]>
Date: Thu, 27 Jul 2023 05:03:32 -0400

Eli Zaretskii <[email-masked]> writes:

>> Date: Thu, 27 Jul 2023 04:50:21 +0300
>> Cc: [email-masked]
>> From: Dmitry Gutov <[email-masked]>
>> 
>> On 18/07/2023 19:34, Eli Zaretskii wrote:
>> > This is normal: cl-loaddefs.el has no-byte-compile:t , so the async
>> > compilation does nothing.
>> > 
>> > This is harmless, and not a bug.
>> 
>> Reading the file, extracting it from an archive, to ultimately do 
>> nothing, seems unfortunate. I'm guessing it can add a certain latency to 
>> Emacs's startup.
>
> What do you suggest we do instead?  Emacs cannot know a file should
> not be compiled without reading its contents first.

If we add cl-loaddefs.el to `native-comp-jit-compilation-deny-list' we
should just not even attempt compiling it.

Dunno if it's considered an acceptable fix, in case I can push it so it
can get tested.

Best Regards

  Andrea