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: [Emacs-diffs] master 55ec674: * lisp/multifile.el: New file, extracted from etags.el Date: Fri, 18 Jan 2019 06:52:12 +0300 Message-ID: <07e843c5-70ea-20e6-96c9-263ea78e113f@yandex.ru> References: <20180922154639.23195.66360@vcs0.savannah.gnu.org> <20180922154640.9D58220310@vcs0.savannah.gnu.org> <54108dbc-9d12-06ff-3f1d-151118e9b234@yandex.ru> <385f6543-2214-101c-30b8-a8115a8dbede@yandex.ru> <87zhsi7mlt.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1547783417 15373 195.159.176.226 (18 Jan 2019 03:50:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2019 03:50:17 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0 Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 18 04:50:12 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 esmtp (Exim 4.84_2) (envelope-from ) id 1gkLAa-0003tX-Dq for ged-emacs-devel@m.gmane.org; Fri, 18 Jan 2019 04:50:12 +0100 Original-Received: from localhost ([127.0.0.1]:59531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkLCh-0001s2-EW for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2019 22:52:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkLCc-0001ru-1o for emacs-devel@gnu.org; Thu, 17 Jan 2019 22:52:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkLCb-0005tJ-A7 for emacs-devel@gnu.org; Thu, 17 Jan 2019 22:52:18 -0500 Original-Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]:35332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkLCb-0005rR-3B for emacs-devel@gnu.org; Thu, 17 Jan 2019 22:52:17 -0500 Original-Received: by mail-lf1-x142.google.com with SMTP id e26so9473895lfc.2 for ; Thu, 17 Jan 2019 19:52:16 -0800 (PST) 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=0AGwbpv+aOe4dyX1x2jbCgMx7B8eX02GRspMoxcq0SU=; b=QHbWjYXcusDg1ug2fncslxW8yl0tpzMKSgQ99uBzzpQb1bk1wsMkxAnLI89rQvZRi3 aQseZXCOiB0J+RrTNnkokUXt8h5wrLDcRO4wNYMhJnm4S6wuC/sfB0lJ1v1Onc9RdWPB xGBzj/YlMeXc8vmEZkgUmaEhQs/JLhJ0boJ1IkUiwI9cKoTS21MBjbJieQn0zT5Jlc2s nd+6LZgOeUhb28xYy1j0j93lLSEe0FulZ5ILfwDwYcOlBDru+/NXK+PDuH6kNFsO2KG3 fuLX5LG1Vp+Re/aNsj8i6UN5jm3aZPnJBhNu5FmhyVaIXJ5IlHKo6VkTB6mG/bxZ5WvZ kQ5g== 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=0AGwbpv+aOe4dyX1x2jbCgMx7B8eX02GRspMoxcq0SU=; b=RYof6+YjffeRxL05w0fCsThCuJBKa43dTmPNT4Fb790AaXoD8/IYgmYpaOSrODp+E6 siUW1YPsQ74+Iew4bJv/I5B6Zhgh6C5vRXKIYe2Wrmn84LItsnVUNIv3YUL9kuCOooVj W62yAEgI+jaExDrvxn0bXhdta8XI8Iy1dcgj/Hs7shT12PRfL9s8tqSGALpbXlrnvAtQ ol2YbNRUbXryzxHl6chUwc8G0EeVkU/xChNqclsUpRo6x6FmoDVMCNeFdFf5GPQaW4YI 7WPsBgT8TqwHgCAOFqy919uGbDtp5hl7bLpa1SWPsA54S7F0XdMtu3OTCQn2xGuU8p/x XkzQ== X-Gm-Message-State: AJcUukeC2AKmZGfl4MbpVZvH1CnBV7XpJldqQK7AjQYebbOrBweZE7wB gxvqd5cbSirdqOdcuUhFnuMRaeFa X-Google-Smtp-Source: ALg8bN45m//uB95LWvrI3jJL+HdYpPAYpd/HPg6O6ZTXzqOQ6Z5CR3ULhIcRvNbHU1MvgM9lFDujCw== X-Received: by 2002:a19:aace:: with SMTP id t197mr11490366lfe.7.1547783534696; Thu, 17 Jan 2019 19:52:14 -0800 (PST) Original-Received: from [192.168.0.108] ([79.175.3.65]) by smtp.googlemail.com with ESMTPSA id x11sm665738lfd.81.2019.01.17.19.52.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 19:52:13 -0800 (PST) In-Reply-To: <87zhsi7mlt.fsf@mail.linkov.net> 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::142 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:232453 Archived-At: On 03.01.2019 00:53, Juri Linkov wrote: > IMHO, everything is clear: “find” with “-path” filters is slow, > whereas “git ls-files” is fast. I've pushed the planned change. You can try this to speed things up a bit: (cl-defmethod project-files ((project (head vc)) &optional _dirs) (if (eq (ignore-errors (vc-responsible-backend default-directory)) 'Git) (let ((default-directory (vc-root-dir))) (split-string (shell-command-to-string "git ls-files -z") "\0" t)) (cl-call-next-method))) I'm not adding this to master because this does not support project-vc-ignores (or grep-find-ignored-files). Which will be the hard part. But if 'git ls-files' is enough for your needs, please enjoy the speed.