all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Suggestion: vc-hooks.el: Make vc-handled-backends more conservative?
Date: Mon, 09 Oct 2006 23:23:13 -0400	[thread overview]
Message-ID: <jwvac44lv5o.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <17706.64279.627316.725306@gargle.gargle.HOWL> (T. V. Raman's message of "Mon\, 9 Oct 2006 18\:44\:55 -0700")

> The last two --arch and MCVS have a particularly bad performance
> penalty on systems that have NFS mounts in places other than /net
> or /afs --- se variable vc-ignore-dir-regexp

> Unless one discovers the above variable (vc-ignore-dir-regexp is
> declared as a defvar, and not as defcustom)
> nfs based systems take a heavy performance hit --- since function
> vc-find-root recursively ascends the directory tree in attempting
> to check if files are under version control.

> Suggestions:

> A) Possibly make vc-handled-backends more conservative by pruning
>         it to have RCS CVS and SVN on it by default.

> B)      Make vc-ignore-dir-regexp a customizable option via
> defcustom,
>         and add a pointer to it in the docstring for
>         vc-handled-backends so that users discover its purpose

I think B is a good idea in general.  Especially since vc-ignore-dir-regexp
is useful not just for NFS mounts but for any other circumstance where the
user wants to disable VC in some part of his file-system.

I think A might be a good idea as well.  MetaCVS is a rather obscure
revision control system.  GNU Arch is less so, but it's not that popular
either.  And there are several more still unsupported but whose support
should hopefully come at some point (Mercury, bzr, git, DaRCS, monotone,
codeville, OpenCM, you-name-it).  So we most likely will not want *all*
supported systems to be "active".  Maybe now is not the worst time to start
down that road.

>         In my case I chased it down by examining the source code after
>         observing that emacs was making excessive nfs accesses during file
>         load and save.

Just to make sure that it can only be fixed with something like
vc-ignore-dir-regexp, could you describe the particular circumstance where
this happens, as well as describe as precisely as possible what
actually happens?


        Stefan

  reply	other threads:[~2006-10-10  3:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10  1:44 Suggestion: vc-hooks.el: Make vc-handled-backends more conservative? T. V. Raman
2006-10-10  3:23 ` Stefan Monnier [this message]
2006-10-11 13:28   ` T. V. Raman
2006-10-11 18:28     ` Stefan Monnier
2006-10-13  1:31       ` T. V. Raman
2006-10-13  5:23         ` Stefan Monnier

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=jwvac44lv5o.fsf-monnier+emacs@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.