[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master afc0bfd380: Speed up loaddefs-generate on slow disks

From: Lars Ingebrigtsen
Subject: Re: master afc0bfd380: Speed up loaddefs-generate on slow disks
Date: Thu, 02 Jun 2022 17:20:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> I'm really surprised this is faster, even on slow disks.
> Does anyone have a idea of why that is?

I didn't actually benchmark it -- either way is fast on my laptop.  But
the old autoloads code did it with time-less-p, and Eli said that it was
faster, so...  Perhaps Eli can report back whether it made a difference
or not.

> Maybe `file-newer-than-file-p` should accept a time value for one of the
> two file names so we can speed this up further by refraining from
> constructing a whole `file-attributes` only to reduce it down to
> a single boolean?

There's a longer discussion about these issues (i.e., reworking the
functions in this area to be more efficient in these respects) in the
bug tracker somewhere.  Paul had a bunch of ideas that I think we should
pursue.  I forget which bug# -- perhaps Paul remembers; added to the CCs.

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]