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: Dmitry Gutov
Subject: Re: A project-files implementation for Git projects
Date: Fri, 4 Oct 2019 15:57:58 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 04.10.2019 11:49, Tassilo Horn wrote:
Tassilo Horn <address@hidden> writes:

I wish someone did some benchmarking with Hg projects.
mozilla-central (~200000 files) is still slower on my machine with Hg
than with 'find'.

I'll do.

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).

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



reply via email to

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