From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Fri, 04 Oct 2019 15:59:24 +0200 Message-ID: <87r23sharn.fsf@gnu.org> References: <8736h9rdc4.fsf@gnu.org> <87pnk2zvvy.fsf@gnu.org> <87sgows6wy.fsf@gnu.org> <87ef0dy18z.fsf@gnu.org> <87impk675h.fsf@gnu.org> <874l13h30l.fsf@gnu.org> <7386ef98-c151-e1ce-23fa-11470a16f0d3@yandex.ru> <87h84x1zoa.fsf@gnu.org> <4be972f9-45a3-f2aa-f532-d7b8fbe054fd@yandex.ru> <17994e8f-9940-2da5-216e-20a5d3842822@yandex.ru> <87r23u9qjc.fsf@gnu.org> <1ffb046d-f2de-b1d5-d6a9-a6059616cc08@yandex.ru> <87imp5kax0.fsf@gnu.org> <1a9a7f78-fbef-176d-9189-7007046d3fb1@yandex.ru> <875zl5hrzh.fsf@gnu.org> <87wodkhp4p.fsf@gnu.org> <0bbf7519-bf63-f92f-b1b3-f63c5b5d4ddf@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29257"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 16:00:44 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 1iGO8Q-0007Me-Mo for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 16:00:42 +0200 Original-Received: from localhost ([::1]:49158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGO8P-0006wN-5n for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 10:00:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51513) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGO7G-0006Pu-6e for emacs-devel@gnu.org; Fri, 04 Oct 2019 09:59:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iGO7E-0002bu-Gg; Fri, 04 Oct 2019 09:59:29 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:53555) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1iGO7D-0004gh-NP; Fri, 04 Oct 2019 09:59:28 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 44ACB21A97; Fri, 4 Oct 2019 09:59:27 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 04 Oct 2019 09:59:27 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrhedugdeigecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucfkphepkeegrddufedvrdelle drgeeinecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppe hgnhhurdhorhhgsehfrghsthhmrghilhdrfhhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from thinkpad-t440p (p5484632e.dip0.t-ipconnect.de [84.132.99.46]) by mail.messagingengine.com (Postfix) with ESMTPA id DC909D6005E; Fri, 4 Oct 2019 09:59:25 -0400 (EDT) Mail-Followup-To: Dmitry Gutov , emacs-devel@gnu.org In-Reply-To: <0bbf7519-bf63-f92f-b1b3-f63c5b5d4ddf@yandex.ru> (Dmitry Gutov's message of "Fri, 4 Oct 2019 15:57:58 +0300") 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:240572 Archived-At: Dmitry Gutov 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