unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: autorevert and vc
Date: Tue, 30 Mar 2004 09:17:36 -0600 (CST)	[thread overview]
Message-ID: <200403301517.i2UFHa613876@raven.dms.auburn.edu> (raw)
In-Reply-To: <m1d66wgutj.fsf-monnier+emacs@empanada.iro.umontreal.ca> (message from Stefan Monnier on 28 Mar 2004 23:24:03 -0500)

Stefan Monnier wrote:

   In other words the VC-state-refresh code should be completely separate
   from the file-buffer-refresh code since both can change independently.
   It can still all be in autorevert.el, but a refresh of one shouldn't
   necessarily force a refresh of another (currently a refresh of the buffer
   text forces a refresh of the VC-state, which is OK only because we don't
   kow how to check staleness of the VC-state so we use staleness of the
   buffer-text as a heuristic that the VC-state might also be stale).

>From my prior reply:   
   
   It apparently does not seem to take that much CPU to update the
   VC-state (without reverting the buffer) every five seconds, whether
   it is needed or not.  I needed at least twenty version controlled
   buffers to make the CPU usage just barely measurable on a 1.7 GHZ
   dual Xeon.

To be more specific, I did not make very precise measurements, but it
seems to take about 40 CVS controlled buffers for the checking to use
about one percent of CPU where the two processors count for 200
percent.  This probably still means that on very slow machines there
could be a problem if there are very many VC controlled buffers.  I do
not know very much about VC, but at first sight, I would be inclined
to believe that probably the real way to do it would be to check the
file modification times of the control files.  (I do not know enough
about the various VC systems to implement that, assuming it actually
would make sense.)  There seem to be currently six version control
systems supported by VC.  Maybe a function checking staleness of the
vc state for all of them could be useful for other purposes, but I
seem to infer from your comments quoted above, that there currently is
no such function.

The problem with the implementation we are about to take out is that
it only works for one VC system, CVS, and does not seem to work very
reliably for that one.

Sincerely,

Luc.

  parent reply	other threads:[~2004-03-30 15:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29  3:52 autorevert and vc Luc Teirlinck
2004-03-29  4:24 ` Stefan Monnier
2004-03-29  4:43   ` Luc Teirlinck
2004-03-30  2:27   ` Luc Teirlinck
2004-03-30 19:56     ` Stefan Monnier
2004-04-01 10:27     ` Jari Aalto
2004-04-01 16:46       ` Luc Teirlinck
2004-03-30 15:17   ` Luc Teirlinck [this message]
2004-03-30 20:51     ` Andre Spiegel
2004-03-31  0:24       ` Stefan Monnier
2004-03-31  2:02         ` Luc Teirlinck
2004-03-31  2:15           ` Luc Teirlinck
2004-03-31  7:19           ` 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

  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=200403301517.i2UFHa613876@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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).