From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: vc-dir operation is very slow on large git repositories in Emacs 26.1 Date: Thu, 28 Jun 2018 16:28:56 +0300 Message-ID: <6c681388-c5d7-84ae-bf9e-bf9f0ab4da3a@yandex.ru> References: <83k1qtsbgi.fsf@gnu.org> <30712254-6225-c6a8-1457-698c64e37739@yandex.ru> <83zhzltyii.fsf@gnu.org> <5218794b-b9ef-3c0d-d3c1-bf40c42e64b2@yandex.ru> <83r2kxtk9w.fsf@gnu.org> <5095ed13-d4a8-1699-26f9-746afaee0248@yandex.ru> <83in66sxig.fsf@gnu.org> <87bmbxbmvz.fsf@javad.com> <132e0090-3e44-dacf-2926-63624b3bb718@yandex.ru> <87fu19rlir.fsf@tromey.com> <340e65ee-dd83-74e9-4531-e8422064536b@yandex.ru> <87vaa33v2v.fsf@javad.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1530192636 14074 195.159.176.226 (28 Jun 2018 13:30:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 13:30:36 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 Cc: Eli Zaretskii , Tom Tromey , alexharsanyi@gmail.com, emacs-devel@gnu.org To: Sergey Organov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 28 15:30:32 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 1fYX0J-0003Zj-TO for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2018 15:30:32 +0200 Original-Received: from localhost ([::1]:36741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYX2R-0001uW-7B for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2018 09:32:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYWyv-0007j9-KR for emacs-devel@gnu.org; Thu, 28 Jun 2018 09:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYWyq-00081k-LB for emacs-devel@gnu.org; Thu, 28 Jun 2018 09:29:05 -0400 Original-Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:46398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYWyq-00080U-Dz; Thu, 28 Jun 2018 09:29:00 -0400 Original-Received: by mail-wr0-x242.google.com with SMTP id t6-v6so5515370wrq.13; Thu, 28 Jun 2018 06:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ke+C2g3wzB4D/MInO5vF6OEe7fkxNk66jFb12qpP14A=; b=UqPKGTXj+NSQFjUgNKVK/ClyKPihXud4dz+ezdKhUeYAdTfvU3ZaxNfNQLzclIKNF7 l7casnBUTolfAfmrs13T2wrHnEkbqqCjZwPZr8lM29me2RzXipYfoTIg7ibCgvS2H5cD 9alu4BaPbRS5iD8FZUY2hW9ZNw94eL+vPm9dTLCaATE4WI2rhFLBr2phZI4VXSnzw+rN XCnBRpLNIQSDeK3qF/wNcC/wOMgDRY/UawAU6aw9bn6DpksfFmaKxxf8TJfIRsza4NuW hafksK5/ji71o4/L/HJcVOJyR1tR/qNBbzDcrWRIi9ARvuefy+qmqz8GUexbMgz7AwRi jIaw== 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:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ke+C2g3wzB4D/MInO5vF6OEe7fkxNk66jFb12qpP14A=; b=VJOKKmfMb/OyBOMITzwYfQfN1xmq6dZY3UBOdcuY87spEZ7QJcZ1W/9K3NOKtQkIpR jCNLvtZEm2OvkGkT4dwn4U+U/r3Seu4XKsTxFDYQic+ICW9LNsB8tSL0ETNWcRKtLdkx TVF5Ti8lbcjV0N1EwqFt/oHV4wCRGb2jhi5b9lT7LyGvE2XcRsuzKNRMEVscPABpPfQC av4YmMt63K6aMwPmTsTF4Wgd4x2Q9I9Fl9Xml6vXMerKmsXGEctcM+FWF536ZdwTpa3g BNAVUHN6cksgk3fH6J2ocl33y5os5M4moUmA8NZ9Ujrm0n4PY/E0ZcH4HTM8IwkBVCay A4dA== X-Gm-Message-State: APt69E1VxCtcjxpCpbBrvsOP5NT4sxuvFqy7Nwlil7DKOmFqnkRQBTPg X9bJnlGXzlU+In01o8VIAjXidVCY X-Google-Smtp-Source: AAOMgpe4fOjXQG4nY0tFNcv2SLFqqRsv/DC75wRvAcsuxCg78VcItDWPKpYO2254GSHTdeKzfkVF6g== X-Received: by 2002:adf:ba8c:: with SMTP id p12-v6mr2003376wrg.139.1530192539042; Thu, 28 Jun 2018 06:28:59 -0700 (PDT) Original-Received: from [192.168.0.200] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id m145-v6sm8266777wma.19.2018.06.28.06.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 06:28:58 -0700 (PDT) In-Reply-To: <87vaa33v2v.fsf@javad.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 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:226811 Archived-At: On 6/28/18 4:21 PM, Sergey Organov wrote: > In fact it could be that > > $ git status -z > > is the way to go, even though it will need changes in parsing. > > Here is quote from 'git help status', for quick reference: > > -z > Terminate entries with NUL, instead of LF. This implies the > --porcelain output format if no other format is given. > [...] > > --porcelain > Give the output in an easy-to-parse format for scripts. This is > similar to the short output, but will remain stable across Git > versions and regardless of user configuration. See below for > details. > > > The output format is then carefully described later in the man-page. Switching over to 'git status porcelain=v2' is a bigger enterprise, and we only want to do that after Git 2.11.0 (where version 2 was introduced) is old enough.