From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Kotta Newsgroups: gmane.emacs.bugs Subject: bug#24126: vc-hg-state can be extremely slow Date: Tue, 2 Aug 2016 10:57:33 -0500 Message-ID: References: <932b12d0-6081-99c4-91f7-ed00f42462f2@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ab046c9b922053918c894 X-Trace: blaine.gmane.org 1470153565 28569 195.159.176.226 (2 Aug 2016 15:59:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2016 15:59:25 +0000 (UTC) Cc: 24126@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 02 17:59:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bUc6B-00071B-HB for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 17:59:19 +0200 Original-Received: from localhost ([::1]:57386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUc68-0001Gu-3t for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Aug 2016 11:59:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUc5y-0001EJ-UW for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 11:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUc5u-0006Ti-Qh for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 11:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUc5u-0006Td-MI for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bUc5u-00051V-9N for bug-gnu-emacs@gnu.org; Tue, 02 Aug 2016 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jonathan Kotta Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Aug 2016 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24126-submit@debbugs.gnu.org id=B24126.147015350119261 (code B ref 24126); Tue, 02 Aug 2016 15:59:02 +0000 Original-Received: (at 24126) by debbugs.gnu.org; 2 Aug 2016 15:58:21 +0000 Original-Received: from localhost ([127.0.0.1]:53791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUc5F-00050b-JB for submit@debbugs.gnu.org; Tue, 02 Aug 2016 11:58:21 -0400 Original-Received: from mail-pf0-f173.google.com ([209.85.192.173]:35853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUc5E-00050N-7H for 24126@debbugs.gnu.org; Tue, 02 Aug 2016 11:58:20 -0400 Original-Received: by mail-pf0-f173.google.com with SMTP id h186so67529879pfg.3 for <24126@debbugs.gnu.org>; Tue, 02 Aug 2016 08:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YY0rudtg9Oh4MhqU+/azTbR8d6STvsmK4L5wZSDjNWg=; b=JtqE6DMGborWNuwUis6JFtrYfwvipVA19P8apg0uhP5NhgPG/OOgEGDnyXU+cxoQuw Pmbs9oIYiR4KAwE0dy4klDkzbfQzMtpbayKiNx/uvSxRiGZdiapb9zcDsX1ihAUo3WXS gMWntP11ftn7swRKrYc9DnFem+kKxM0XUDiAya61w2gEd3xGOOKDuqkeiN6eizgYfjFt /YxBlHrhnpGQ31VgN00FnBPKfCSFENzPEfclBRcybEUQK24dF++KSguif+xgKQ1WaK0D uq676il5eOCUBrEPlcEdQMbMNn3qGlNpCWltFL3j0vhx7fqMjnCGYjrsMBYl9SBnX0Bt pB6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YY0rudtg9Oh4MhqU+/azTbR8d6STvsmK4L5wZSDjNWg=; b=cE81lVTn+mk7EQ21ORLO10mb25fEblvXDG7swAqDwfWhkwEldCQ6Ba1AmUg7w84uKz gT0LgE4IjQZmR/i59TeEPtoLojVGvxkDFM/DBPugfpPmQU70ikTntS8j9vdx6cpGPoeQ fjz5Ohgvhw4rU6nFT0iCfQ4qIgS4TsCNKoGlDHi33eQg7XInGZ2IID78W8Zt5pKh71PW voLCUWaazDxUPaoxuIeBJFeXyixiOV6C3bPcz9Ci9zLGJI8FdC8x/mrVB02q2SwSRSbc KFFXmuQyUvL4ztBdT6uRs3eeojTEBYsAxMsUZKPnew6skwPmq2/RI5XLocv6caDe5lD8 cdaQ== X-Gm-Message-State: AEkoouvCzev7hRpGauwjaI3qXTF3zUHuk8bsPuZBxyqCS1fVd2+ecWoD4V6s6IbTwGmucAmZzvZ9X+3YMrrrbw== X-Received: by 10.98.102.79 with SMTP id a76mr107200111pfc.75.1470153494213; Tue, 02 Aug 2016 08:58:14 -0700 (PDT) Original-Received: by 10.66.249.231 with HTTP; Tue, 2 Aug 2016 08:57:33 -0700 (PDT) In-Reply-To: <932b12d0-6081-99c4-91f7-ed00f42462f2@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121785 Archived-At: --001a113ab046c9b922053918c894 Content-Type: text/plain; charset=UTF-8 On Tue, Aug 2, 2016 at 8:32 AM, Dmitry Gutov wrote: > On 08/01/2016 09:40 PM, Jonathan Kotta wrote: > >> Emacs uses `hg status -A` in vc-hg-state, which in turn is used in many >> vc commands (e.g. vc-root-diff). The "-A" option makes mercurial look >> at all files under the directory, even the ignored ones. If there are a >> lot of ignored files, this will be very slow. >> > > Why does it do that? We're passing a specific file name to it. > In the case of `vc-root-diff` at least, it's passing in a directory; the command is essentially `hg status -A ./`, and the CWD is indeed the repo root. I did this by running `vc-root-diff` from a dired buffer visiting the repo root. -- Thanks, Jonathan Kotta Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. --001a113ab046c9b922053918c894 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Aug 2, 2016 at 8:32 AM, Dmitry Gutov <dgutov@yandex.ru><= /span> wrote:
On 08/01/2= 016 09:40 PM, Jonathan Kotta wrote:
Emacs uses `hg status -A` in vc-hg-state, which in turn is used in many
vc commands (e.g. vc-root-diff).=C2=A0 The "-A" option makes merc= urial look
at all files under the directory, even the ignored ones.=C2=A0 If there are= a
lot of ignored files, this will be very slow.

Why does it do that? We're passing a specific file name to it.

In the case of `vc-root-diff` at least, it'= s passing in a directory; the command is essentially `hg status -A ./`, and= the CWD is indeed the repo root.=C2=A0 I did this by running `vc-root-diff= ` from a dired buffer visiting the repo root.

-- =
Thanks,

Jonathan Kotta

Hofstadter's Law:
= =C2=A0 =C2=A0 It always takes longer than you expect, even
=C2=A0 =C2=A0= when you take into account Hofstadter's Law.
--001a113ab046c9b922053918c894--