emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-27 e1e0a7a 2/2: xref--collect-matches: Speed up on remote


From: Stefan Monnier
Subject: Re: emacs-27 e1e0a7a 2/2: xref--collect-matches: Speed up on remote
Date: Fri, 27 Dec 2019 14:30:02 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>>> +               (buf (unless remote-id
>>> +                      ;; find-buffer-visiting is slow on remote.
>>> +                      (xref--find-buffer-visiting file)))
>> How 'bout using `get-file-buffer` instead, then?
> Good idea. Still slower on remote files, but much faster overall.

Hmm... why is it slower on remote files?  AFAIK it all works locally.
It does go through Tramp for the initial `expand-file-name`, but AFAIK
this shouldn't need to talk to the remote host (unless it has a ~/ or
~<user>/ in the remote part of the name, I guess?).


        Stefan




reply via email to

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