emacs-devel
[Top][All Lists]
Advanced

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

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


From: Stefan Monnier
Subject: Re: master afc0bfd380: Speed up loaddefs-generate on slow disks
Date: Fri, 03 Jun 2022 08:21:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> This suggests that the kind of change I suggested would make it even
>> a bit faster, tho it should reduce the run time by less than 50%
>> under Windows (because the time to do the `stat`s is apparently already
>> >50% of the total).
>
> I don't know how you deduce the 50% figure.

The old code performed 2*N `stat`s.
The new current code performs N times `time-less-p` and
`file-attributes`, which is N `stat`s plus N times some overhead.
The proposed new functionality would reduce this to more or less just
N `stat`s so it would save us the "some overhead".

Because the old code is slower than the current code, we know that

    2*stat > stat + overhead

thus `stat > overhead`.  So `overhead` is less than 50% of `stat + overhead`.


        Stefan




reply via email to

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