From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Fri, 4 Oct 2019 15:57:58 +0300 Message-ID: <0bbf7519-bf63-f92f-b1b3-f63c5b5d4ddf@yandex.ru> References: <8736h9rdc4.fsf@gnu.org> <87a7ba8uvx.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26685"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 14:59:15 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 1iGNAv-0005vo-UK for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 14:59:14 +0200 Original-Received: from localhost ([::1]:48330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGNA9-00009j-2w for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 08:58:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGN9r-00008F-KV for emacs-devel@gnu.org; Fri, 04 Oct 2019 08:58:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGN9q-000068-6l for emacs-devel@gnu.org; Fri, 04 Oct 2019 08:58:07 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:50181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGN9o-0008Vi-C1 for emacs-devel@gnu.org; Fri, 04 Oct 2019 08:58:06 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5so5744939wmg.0 for ; Fri, 04 Oct 2019 05:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Fe06PMGBuUjwONXXWJxm+r26t+St4rq330kkV555TFI=; b=KNJ0jc7kocU+Tb0wqskROTp3r7q7TIbg+z3irbpjeeN/zYLscrG6HZzJTLptxbZxbr iJu+x0OTRx9rWEL+c2N0+xOEO48Of0+fS0tUmEV1GFtli20aWWL53voRTeXW805FL/te o918Px15i0hFztR6u/BgwycMq4YVpPo2ItH7BQP9bUj9kdlaPJ4Zepo3o/u5LeSaJ+0d SlEAgDmSLf663Tvg24uBU+KbgTa8gz+r8X/7RvML/Btnzibvmiyj/ixM81UXUGxhpxkD a6Zg4swYDHwrljQ0qXeIuPSx6V2TsmVn9emI6fIYJT+AYz61ySTE4ftYf1oOiSqPsazN jExw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Fe06PMGBuUjwONXXWJxm+r26t+St4rq330kkV555TFI=; b=CnGuk4l+5MbidMLKIP+4NEAnWN2gcRhyoXoU8b4H/tFKTfN9Bzp2whc2zwbN1VMVCi VjPZtr7aHKvNGdCd+NquxYedmFzx6apya8zSRRjdIuuGoJFFkjXD7hIx+NSt3UjaiA3k VcdLFKr8eTmeI4D2lPEykCxqLAtqXK4lp0zbFk71HcJCIupL2bsS+EE3o96Awrh988HF CQWcNxtHiPhtXHt0z3gTEBivNmhz3oIFYHvZloAXXJR2HgG1vrDBICbm7y0COtkpQnSZ CkQ84qBEYBhQ/qYV8whuymeINeIvGhVedKormJnoUDAkWPdtVsP1TFhWjRmWTV+Eq5gM pf0g== X-Gm-Message-State: APjAAAUzHHA2R9IDPL+HsOOCT0BgM+3FgE4rdx9Zb9qVKzxhOpZ/+Vm0 OKAtoB+nCR4dbF8EkqTUW9kpM58mINk= X-Google-Smtp-Source: APXvYqx+sWKOZ3BvJUTNwThBSVZah4gnYHlH2FO26XOj1JaIfj6awLlMTI/CGsX+3UdYeaw7o5PFqA== X-Received: by 2002:a05:600c:1009:: with SMTP id c9mr10491164wmc.64.1570193880875; Fri, 04 Oct 2019 05:58:00 -0700 (PDT) Original-Received: from [192.168.0.133] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id n8sm7993804wma.7.2019.10.04.05.57.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 05:57:59 -0700 (PDT) In-Reply-To: <87wodkhp4p.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c 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:240566 Archived-At: On 04.10.2019 11:49, Tassilo Horn wrote: > Tassilo Horn 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.