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: Eli Zaretskii
Subject: Re: 22.1.50; insert-file-contents is slow under tramp
Date: Fri, 24 Aug 2007 12:28:24 +0300

> 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.




reply via email to

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