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: Fri, 24 Aug 2007 11:35:50 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

On Fri, 24 Aug 2007 12:28:24 +0300 Eli Zaretskii <address@hidden> wrote:

>> From: Stephen Berman <address@hidden>
>> Date: Thu, 23 Aug 2007 23:40:22 +0200
>> Cc: address@hidden
>> 
>> > 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.
>
> For the future: there _is_ a better way: use the elp.el package to
> profile the command, and you should be able to see which function
> consumes the most of the time.

Thanks for the tip!

Steve Berman





reply via email to

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