From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Harsanyi Newsgroups: gmane.emacs.devel Subject: Re: vc-dir operation is very slow on large git repositories in Emacs 26.1 Date: Thu, 21 Jun 2018 06:33:57 +0800 Message-ID: References: <83k1qtsbgi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1529534025 12821 195.159.176.226 (20 Jun 2018 22:33:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2018 22:33:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 00:33:41 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVlfY-0003DU-UJ for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2018 00:33:41 +0200 Original-Received: from localhost ([::1]:52048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVlhe-0005zP-He for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2018 18:35:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVlfs-00054T-CF for emacs-devel@gnu.org; Wed, 20 Jun 2018 18:34:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVlfr-00022h-IF for emacs-devel@gnu.org; Wed, 20 Jun 2018 18:34:00 -0400 Original-Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:33783) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVlfr-00022S-CN for emacs-devel@gnu.org; Wed, 20 Jun 2018 18:33:59 -0400 Original-Received: by mail-it0-x22e.google.com with SMTP id k17-v6so791478ita.0 for ; Wed, 20 Jun 2018 15:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=ykiqagtGDir531z4jm16q7Kre8Ee3ZOF3LJpKYti7+8=; b=EjSlTN52T6uRlFfWsPA29ezSB2cCUMPZyCOeVO8ID1WYfihPopUFZBhcWJ1ldYDgik yIQd0VJRdaa40LkqRm93nEFo+5FNL8zvu8TcUyH1YoJ9sNY2T6bzGjmRmaF4Fmljgk1Q HsO+qqaItppDAOGGUHGad8V1GdKPxTbYRTYyMaXH6P0eWcMEy1rZzAg0XZh/84blJRuX F21GzyvI0TII430LMzW18eXZLj6HdUaUOWISrfQmtAPEGB/NSrhUwDFHHfIzNIVaSnE9 6F5sTcMABa13uudBUnZlLtfkvjdqliOghMUZrtUDiLKMhZR2p6q+mt0w9bRG9DYvCpNz zqZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=ykiqagtGDir531z4jm16q7Kre8Ee3ZOF3LJpKYti7+8=; b=Vum61h+O3QTqZytZpJnJVNJ1OKF7XgJXZ/v6TN3Z5JYYjKcjCOzpYTgli5RbRyJ5v4 +K8135J8fh+HOPqiDmpMiiNb2Seoalp5f74qMgzpTflh5daQp7QNdf3h2f4V/GRSbHM4 zrJbQuEOaG02wbGkexRI0EBJddIuObRZ8ehI4uRJOouMKExmG8OLNdn/TbV3PnOhsbC7 sTL3GHKObJyBwXBliXBaFhALvyClMiI62iSEWPHZEmS36N4Dkamq0FEb/l1QV2Sfb3vQ ppWFL5GHkKriR2WM/AR2Ecm9UEstEocFEDIlxVkXnYzTKzq6oGy//KuTzoYdqF+c0E5o 9Maw== X-Gm-Message-State: APt69E2fBetsUjG8io+mZDR60/QBHyjXgMbQTU/Okpa1ty15gRS0hGeF kSrQ+rElizGc5sy85wU9TuzS3i2sBUTjD66/pJ1ED+i7 X-Google-Smtp-Source: ADUXVKLt2Xoc+oWt43krieH1NRdSeTkx8BXwAIIShH328S10NFN5aKCtmo0pVN58sYNMRZeZpbZcYq7YN7YWm7x2lEU= X-Received: by 2002:a02:666a:: with SMTP id l42-v6mr19355142jaf.70.1529534038306; Wed, 20 Jun 2018 15:33:58 -0700 (PDT) Original-Received: by 2002:a5e:c116:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 15:33:57 -0700 (PDT) In-Reply-To: <83k1qtsbgi.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:226557 Archived-At: On Wed, Jun 20, 2018 at 11:51 PM, Eli Zaretskii wrote: >> From: Alex Harsanyi >> Date: Wed, 20 Jun 2018 18:50:12 +0800 >> >> I have a somewhat large git repository at work (51556 files) and >> Emacs 26.1 is very slow when updating the *vc-dir* buffer: I >> start emacs with the "-Q -no-site-file" and it takes >> approximately 2 minutes to update the vc-dir buffer. Emacs 25.2, >> on the same machine and repository, will complete this operation >> in a few seconds. This is on a Windows machine and I use the >> prebuilt binaries downloaded from the gnu.org website for both >> versions. >> >> The operation that takes a long time is the ls-files >> operation, "git --no-pager ls-files -z -c -s --", but running >> that command in a terminal completes in less than a second. > > So you are saying that in Emacs 25.2 this slow Git command was not > invoked in your scenario? > I do not say that. Emacs 25.2 completes too fast to be able to figure what is going on. I suspect 25.2 uses the same git command though, as the command itself completes quickly. >> I cloned the Emacs git repository (which has 3683 files) and a >> vc-dir operation in Emacs 26.1 takes 7 seconds on my machine, >> compared to less than 1 second in Emacs 25.2. I noticed this >> speed difference on my home computer as well. > > FWIW, I get about 2 sec for this in the Emacs repository, and I see no > perceptible difference between Emacs 25.2 and Emacs 26.1. > I suspect this might be a problem with my environment, but I do not know what. It also happens on two machines: my work one and my home one. I would appreciate any hints on how to diagnose this. >> If not, I would appreciate some suggestions on how to further >> diagnose the cause of this issue, as it seems it is related to my >> computer. > > Where did you get the Emacs binaries for the 2 above-mentioned > versions? Both versions were downloaded as compiled binaries from the gnu.org website and not modified in any way -- this happens when I start Emacs with "-Q -no-site-file". Alex.