Subject: bug#78340: [PATCH] New option for comp *.eln file name by the file timestamp of *.el

From: Eli Zaretskii <[email-masked]>
Date: Mon, 12 May 2025 15:15:29 +0300

> From: Lynn Winebarger <[email-masked]>
> Date: Mon, 12 May 2025 08:02:56 -0400
> Cc: Andrea Corallo <[email-masked]>, [email-masked], [email-masked]
> 
> If he has that many packages, his load path has hundreds of entries, and any preloaded library will look in
> every one before finding it in the last entry ...

Maybe so, but that's a separate problem.  The patch submitted in this
bug was to shortcut the hashing of the source *.el files, not to avoid
searching the extra directories.

If the number of directories is the issue, then my suggestion is not
to compile packages AOT, which AFAIU will cause all the *.eln files to
be written to a single subdirectory of the eln-cache (after
compiling them the first time each one is loaded).  But that is a
separate issue which IMO should be discussed with Stefan and Philip,
because it's related to how third-party packages are installed and
compiled.