From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: tramp-sh-handle-vc-registered (was: vc with svn and git)
Date: Sat, 25 Feb 2017 08:36:46 -0500 [thread overview]
Message-ID: <jwv8tou9z9l.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: jwvk28ea0aa.fsf-monnier+Inbox@gnu.org
>> I don't know the situation with tarballs, but for Tramp it is
>> implemented and useful. Tramp's implementation uses some caching indeed
>> for performance improvement. See the comment in tramp-sh.el, heading
>> `tramp-sh-handle-vc-registered'.
> That's odd. Why doesn't it rely on the file-process and
> start-file-process handlers?
OK, I now looked at the code and I see why it's used. I guess the
caching part of tramp-sh-handle-vc-registered is not indispensable
(i.e. there must be a way to make the generic caching mechanism work
well enough for vc-registered), but batching all requests into a single
one is indeed pretty much impossible without some ad-hoc hack like this
one (which relies on the property that vc-registered doesn't have too
many side-effects, so you can do a "dry run" just to see what it would
do).
The only way I can see to get a similar result without ad-hoc hacks
would be to introduce async file operations and then make vc-registered
use them (since IIUC the benefit of tramp-sh-handle-vc-registered's
batching is to avoid paying the latency N times). So vc-registered
would start by firing all file-exists-p tests (an other operations)
asynchronously and then collect their answers.
Stefan
next prev parent reply other threads:[~2017-02-25 13:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 15:23 vc with svn and git Alfred M. Szmidt
2017-02-24 15:35 ` Andreas Schwab
2017-02-24 15:54 ` Alfred M. Szmidt
2017-02-24 17:28 ` Karl Fogel
2017-02-24 17:49 ` Stefan Monnier
2017-02-24 18:11 ` Alfred M. Szmidt
2017-02-24 18:45 ` Karl Fogel
2017-02-24 20:04 ` Richard Copley
2017-02-24 21:16 ` Stefan Monnier
2017-02-24 21:44 ` Richard Copley
2017-02-25 0:11 ` Stefan Monnier
2017-02-25 8:01 ` Michael Albinus
2017-02-25 13:06 ` Stefan Monnier
2017-02-25 13:18 ` Michael Albinus
2017-02-25 13:36 ` Stefan Monnier [this message]
2017-02-28 14:54 ` Alfred M. Szmidt
2017-02-28 18:32 ` Karl Fogel
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv8tou9z9l.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.