unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Berman <Stephen.Berman@gmx.net>
To: emacs-pretest-bug@gnu.org
Subject: 22.1.50; insert-file-contents is slow under tramp
Date: Thu, 23 Aug 2007 14:33:39 +0200	[thread overview]
Message-ID: <87veb6l9b0.fsf@escher.local.home> (raw)

1. emacs -Q

2. I type C-x d and at the prompt type "/localhost:/ RET" and when
prompted type my user password and then complete the path to some
directory that contains a fairly large file (> 1MB is enough to
clearly show the problem), e.g. the lisp directory of the Emacs
sources.

3. I put the cursor on a large file, e.g. ChangeLog.12 (1251246 bytes)
and press RET.  On my machine it takes ~20 seconds for the buffer
visiting this file to appear and during that time emacs is consuming
almost 100% CPU.

If at step 2 I directly enter the path to the lisp directory of the
Emacs sources, avoiding tramp, and then do step 3, the buffer appears
almost instantly, as usual.  So the slowdown is only with tramp (also
if I use a different user, e.g. with /su::/, which is how I first
encountered the problem).  The slowdown seems to be proportional to
the size of the file, so not too long (but noticeable) with small
files.

Using edebug I found the slowdown occurs when insert-file-contents is
called in find-file-noselect-1.  I don't know how to debug it further.
This slowdown did not exist in my previous Emacs build from 2007-06-30.


In GNU Emacs 22.1.50.7 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2007-08-21 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.70199902
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-agent-mode: t
  shell-dirtrack-mode: t
  gnus-topic-mode: t
  gnus-undo-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  recentf-mode: t
  display-time-mode: t
  show-paren-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: identity

Recent input:
<return> e s <tab> <backspace> r <tab> s <tab> c v 
<tab> e <tab> / l i <tab> <M-backspace> l i s <tab> 
<return> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <return> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<tool-bar> <kill-buffer> <tool-bar> <kill-buffer> C-c 
j m a <tab> <return> <up> <up> <up> <up> <up> <up> 
/ o 5 0 0 <return> <home> C-s t r a m C-w C-s C-s C-a 
<down> <down> <down> C-s C-s C-r C-r <left> SPC <up> 
SPC <f1> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <up> SPC <f1> <down-mouse-1> <mouse-2> <select-window> 
<select-window> <help-echo> <f1> <down> q M-x r e p 
o <tab> r <tab> b <tab> <return>

Recent messages:
Fetching headers for gmane.emacs.devel...done
Loading cl-seq...done
Loading cl-extra...done
Generating summary...done
Mark set
Mark saved where search started [2 times]
Loading w3m-symbol...done
Loading w3m-form...done
Making completion list...
Loading emacsbug...done

             reply	other threads:[~2007-08-23 12:33 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 12:33 Stephen Berman [this message]
2007-08-23 14:25 ` 22.1.50; insert-file-contents is slow under tramp martin rudalics
2007-08-23 15:02   ` Stephen Berman
2007-08-23 17:49     ` martin rudalics
2007-08-23 18:59       ` Stefan Monnier
2007-08-23 20:25         ` martin rudalics
2007-08-23 20:39           ` Stephen Berman
2007-08-23 21:01             ` martin rudalics
     [not found]             ` <46CDF5B7.2030201@g\x04mx.at>
2007-08-23 21:40               ` Stephen Berman
2007-08-24  5:34                 ` Michael Albinus
2007-08-24  7:18                   ` Stephen Berman
2007-08-24 14:32                   ` Stefan Monnier
2007-08-26 10:36                     ` Michael Albinus
2007-08-26 19:01                       ` David Kastrup
2007-08-26 19:24                         ` Michael Albinus
2007-08-27  4:16                       ` Stefan Monnier
2007-08-27 11:41                         ` Michael Albinus
2007-08-27 13:58                           ` Stefan Monnier
2007-08-27 14:09                             ` Thien-Thi Nguyen
2007-08-27 14:14                             ` David Kastrup
2007-08-27 14:53                             ` Michael Albinus
2007-08-27 20:11                               ` Stefan Monnier
2007-08-27 20:37                                 ` Michael Albinus
2007-08-27 10:52                     ` Michael Albinus
2007-08-27 11:33                       ` David Kastrup
2007-08-27 18:18                         ` Richard Stallman
2007-08-27 18:51                           ` David Kastrup
2007-08-24  9:28                 ` Eli Zaretskii
2007-08-24  9:35                   ` Stephen Berman
2007-08-24 16:10                 ` Richard Stallman

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=87veb6l9b0.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=emacs-pretest-bug@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).