emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 55ec674: * lisp/multifile.el: New file, extract


From: Dmitry Gutov
Subject: Re: [Emacs-diffs] master 55ec674: * lisp/multifile.el: New file, extracted from etags.el
Date: Fri, 18 Jan 2019 06:52:12 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]