unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-27 e1e0a7a 2/2: xref--collect-matches: Speed up on remote
Date: Fri, 27 Dec 2019 14:30:02 -0500	[thread overview]
Message-ID: <jwvblrtd0ws.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <88d31403-1eb1-e294-4b88-15cacadd52a7@yandex.ru> (Dmitry Gutov's message of "Fri, 27 Dec 2019 19:18:11 +0300")

>>> +               (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	other threads:[~2019-12-27 19:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20191227141917.13328.16721@vcs0.savannah.gnu.org>
     [not found] ` <20191227141919.03F1321537@vcs0.savannah.gnu.org>
2019-12-27 15:58   ` emacs-27 e1e0a7a 2/2: xref--collect-matches: Speed up on remote Stefan Monnier
2019-12-27 16:18     ` Dmitry Gutov
2019-12-27 19:30       ` Stefan Monnier [this message]
2019-12-27 20:19         ` Michael Albinus
2019-12-27 22:06           ` Stefan Monnier
2019-12-28 10:09             ` Michael Albinus
2019-12-28 16:53               ` Stefan Monnier
2019-12-28 15:22             ` Dmitry Gutov
2019-12-28 16:54               ` Stefan Monnier
2019-12-28 16:58                 ` Dmitry Gutov
2019-12-28 18:58               ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvblrtd0ws.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).