[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up
From: |
Michael Albinus |
Subject: |
Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up |
Date: |
Wed, 08 Jan 2020 16:13:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>> But allow me to state for the record once more that I'm puzzled by the
>>> architectural choice we're working with here.
>> I know that. Tramp follows the generic file name handler approach, as
>> described in (info "(elisp) Magic File Names") .
>
> Could someone explain to me why `file-local-name` has to be so much slower
> than `tramp-file-local-name`?
Internally, `file-local-name' uses `file-remote-p'. The latter goes
through the file name handler machinery, and `tramp-file-name-handler'
eats time, according to Dmitry's measures. Usually not a problem, but
remarkable when you apply it to some ten thousand files as in
`xref-matches-in-files'.
> Stefan
Best regards, Michael.
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Michael Albinus, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Dmitry Gutov, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Michael Albinus, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Stefan Monnier, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up,
Michael Albinus <=
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Stefan Monnier, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Michael Albinus, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Stefan Monnier, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Michael Albinus, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Stefan Monnier, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Dmitry Gutov, 2020/01/08
- Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up, Philippe Vaucher, 2020/01/13