emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 22.1.50; insert-file-contents is slow under tramp


From: Stephen Berman
Subject: Re: 22.1.50; insert-file-contents is slow under tramp
Date: Thu, 23 Aug 2007 23:40:22 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

On Thu, 23 Aug 2007 23:01:43 +0200 martin rudalics <address@hidden> wrote:

>> 3754      handler = Ffind_file_name_handler (filename, 
>> Qinsert_file_contents);
>> (gdb) n
>> 3755      if (!NILP (handler))
>> (gdb) n
>> 3757          val = call6 (handler, Qinsert_file_contents, filename,
>
> Did you edebug `tramp-handle-insert-file-contents'?

Yes, and the slowdown occurs on evalling (file-local-copy filename).
In file-local-copy the slowdown occurs at (funcall handler
'file-local-copy file), and the value of `handler' is
tramp-file-name-handler and that's where I got stuck.  Edebug iterates
over it hundreds, maybe thousands of times.  If I just hold down `f'
on this function eventually the slowdown occurs, but I cannot see
where within it.  If I tried stepping through it, I'd probably be at
it all night.  So I hope there's a better way.

Steve Berman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]