emacs-devel
[Top][All Lists]
Advanced

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

Re: A project-files implementation for Git projects


From: Tassilo Horn
Subject: Re: A project-files implementation for Git projects
Date: Fri, 04 Oct 2019 15:59:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Dmitry Gutov <address@hidden> writes:

>> On my machine, the Hg version is much faster than find:
>> Files: 283417 (VC) vs. 283497 (find)
>> VC) Elapsed time: 4.714386s (0.782360s in 12 GCs)
>> Find) Elapsed time: 18.569516s (0.393230s in 5 GCs)
>> I downloaded an archive of mozilla-central and performed "hg init && hg
>> add * && hg commit -m foo" myself.  The hg status --all call on a
>> terminal takes about 2.8 seconds itself.
>> My hg version is 5.1.
>
> That's great. My Hg version is 4.8.2, but maybe they had done some
> performance optimization in the new release. I have a "proper" Hg
> checkout, though, with full history. Maybe that also has an effect.
>
> In any case, I just pushed an optimized implementation for Hg. Please
> try it out as well when you have time. On my machine it's ~equal with
> 'find' based implementation now (roughly 7 seconds).

I get about the same time as before.

Files: 283417 (VC) vs. 283497 (find)
VC) Elapsed time: 4.525872s (0.620848s in 11 GCs)
Find) Elapsed time: 18.480051s (0.268073s in 4 GCs)


> (project--files-in-directory default-directory nil) completes in 2.6s,
> though.

Hm, 13 seconds on the first run and then about 3.7 seconds on each
subsequent run.

Bye,
Tassilo



reply via email to

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