all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Auto-revert on remote files: disabling timers temporarily?
Date: Sun, 30 May 2004 20:59:03 -0500 (CDT)	[thread overview]
Message-ID: <200405310159.i4V1x3K12232@raven.dms.auburn.edu> (raw)
In-Reply-To: <87aczpdhz4.fsf@gmx.de> (message from Michael Albinus on Sun, 30 May 2004 17:58:55 +0200)

Michael Albinus wrote:

   In parallel to Kai, I've tried to find another solution. What about
   disabling timers during execution of a Tramp file name function?

With what intent?

Only to restore auto-reverting of remote files?  If so, would that
mainly be to help debug other problems or because there would appear
to be a real need to revert remote files?  Temporarily re-enabling
auto-reverting of remote files for debugging purposes can easily be
done by erasing one line in ` auto-revert-handler', namely:
(not (file-remote-p buffer-file-name))

On my connection a call to `file-readable-p' for a remote file takes
approximately .35 to .4 seconds.  It can take substantially longer
under less ideal conditions.  (For a local file it takes
substantially less than .001 second, it is essentially unmeasurable.)

With fifteen remote files and global-auto-revert-mode enabled, and the
default value of auto-revert-interval (five seconds)
auto-revert-buffers would essentially be running `file-readable-p' on
remote files constantly, disabling other timers.  This assuming that
no files ever would ever actually need to be reverted.

Actually reverting depends a lot on the size of the file.  For a
moderately sized file like streams.texi, it takes more than 15
seconds.  Again, it can take much longer under less than ideal
conditions.  This assumes that all the connection setup has already
been done.

`auto-revert-stop-on-user-input' only works _between_ taking care of
individual buffers.  So user input could be disabled for more than
fifteen seconds, sometimes _much_ more than that.  One could use
`with-local-quit' to allow interrupting with C-g, but the trouble
starts again 0 to 5 seconds later, so that is no big help.

Sincerely,

Luc.

  reply	other threads:[~2004-05-31  1:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30 15:58 Auto-revert on remote files: disabling timers temporarily? Michael Albinus
2004-05-31  1:59 ` Luc Teirlinck [this message]
2004-05-31  8:51   ` Michael Albinus
2004-05-31 20:15     ` Luc Teirlinck
2004-05-31 20:43       ` Michael Albinus
2004-05-31 21:06         ` Luc Teirlinck
2004-05-31 21:15           ` Michael Albinus
2004-05-31 21:20             ` Luc Teirlinck
2004-06-01  0:18             ` Luc Teirlinck
2004-05-31 21:12         ` Luc Teirlinck
2004-05-31 21:20           ` Michael Albinus
2004-05-31 21:55             ` Luc Teirlinck
2004-05-31 22:18               ` Kim F. Storm
2004-05-31 23:05                 ` Luc Teirlinck
2004-05-31 23:08                 ` Luc Teirlinck
2004-05-31 23:24                 ` Luc Teirlinck
2004-05-31 23:58                 ` Luc Teirlinck
2004-05-31 22:12             ` Luc Teirlinck
     [not found]             ` <200405312331.i4VNVIw27988@raven.dms.auburn.edu>
2004-06-01  5:41               ` Michael Albinus
2004-05-31  2:31 ` Luc Teirlinck
2004-05-31  3:10 ` Luc Teirlinck

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=200405310159.i4V1x3K12232@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 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.