unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: "Eric S. Raymond" <esr@snark.thyrsus.com>, emacs-devel@gnu.org
Subject: Re: Speeding up vc-dired still more
Date: Fri, 28 Dec 2007 04:20:06 -0500	[thread overview]
Message-ID: <20071228092006.GB23009@thyrsus.com> (raw)
In-Reply-To: <200712272125.lBRLPlo7020948@oogie-boogie.ics.uci.edu>

Dan Nicolaescu <dann@ics.uci.edu>:
> All those vc-registered calls are generated by calling vc-backend in
> vc-dired-hook:
> 
>          ;; ordinary file -- call the (possibly expensive) state query
>          (t
>            (let ((backend (vc-backend filename)))
>                (cond
>                     ;; Not registered
>                          ((not backend)

I think this tells me that dir-state needs to set a new state value of
'unregistered when it sees status flag "?" (that's the Subversion and
Mercurial flag; there may be other local equivalents).  That way the
backend check wouldn't need to be done on on a per-file basis.

This change could be a bit tricky.  Right now a nil return from
vc-state means the file is unregistered.  I don't know how deeply that
assumption is wired into the code.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

  reply	other threads:[~2007-12-28  9:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-27 14:52 Speeding up vc-dired still more Eric S. Raymond
2007-12-27 19:27 ` Dan Nicolaescu
2007-12-27 21:25   ` Dan Nicolaescu
2007-12-28  9:20     ` Eric S. Raymond [this message]
2007-12-28  2:53 ` Alexandru Harsanyi
2007-12-28  9:25   ` Eric S. Raymond
2007-12-28 10:55     ` Alexandru Harsanyi
2007-12-28 12:21       ` Eric S. Raymond

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=20071228092006.GB23009@thyrsus.com \
    --to=esr@thyrsus.com \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=esr@snark.thyrsus.com \
    /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).