From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Tue, 10 Sep 2019 17:41:41 +0300 Message-ID: <835zm02oyi.fsf@gnu.org> References: <8736h9rdc4.fsf@gnu.org> <87mufcfz1u.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="77753"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 10 16:41:45 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7hKy-000K7m-H3 for ged-emacs-devel@m.gmane.org; Tue, 10 Sep 2019 16:41:44 +0200 Original-Received: from localhost ([::1]:40580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7hKx-0004Df-AH for ged-emacs-devel@m.gmane.org; Tue, 10 Sep 2019 10:41:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53376) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7hKp-0004C3-Tn for emacs-devel@gnu.org; Tue, 10 Sep 2019 10:41:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i7hKp-0003dT-Js; Tue, 10 Sep 2019 10:41:35 -0400 Original-Received: from [176.228.60.248] (port=3585 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i7hKn-0005EK-Jc; Tue, 10 Sep 2019 10:41:34 -0400 In-reply-to: <87mufcfz1u.fsf@gnu.org> (message from Tassilo Horn on Tue, 10 Sep 2019 08:25:17 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239981 Archived-At: > From: Tassilo Horn > Date: Tue, 10 Sep 2019 08:25:17 +0200 > Cc: emacs-devel@gnu.org > > Also, I think most vc backends have a way to list tracked files but not > all those are faster than find is. "git ls-files" is much faster than > find but short testing revealed that "hg files" is much slower. "hg files"? Did you mean "hg locate", perhaps? Or are there new commands in hg that were added lately? (My installation of Mercurial is quite old, so maybe I'm out of touch.) Anyway, whether 'find' or the VC-specific way is faster might be OS dependent. I'm guessing you tested on GNU/Linux; on MS-Windows, I get the opposite results for both hg and bzr (let alone Git), even though my build of GNU Find is highly optimized and generally much faster than other ports available on Windows. Plus, 'find' might not be available on Windows, whereas the VC backend for a repository must be available, almost by definition. So at the very least this should be customizable, and in general, unless 'find' is orders of magnitude faster, I'd prefer to use VC in all cases. Thanks.