[Top][All Lists]
[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.
- Re: 22.1.50; insert-file-contents is slow under tramp, (continued)
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Richard Stallman, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/27
- Re: 22.1.50; insert-file-contents is slow under tramp, Richard Stallman, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, Michael Albinus, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp, David Kastrup, 2007/08/28
- Re: 22.1.50; insert-file-contents is slow under tramp,
Eli Zaretskii <=
- Re: 22.1.50; insert-file-contents is slow under tramp, Stephen Berman, 2007/08/24
- Re: 22.1.50; insert-file-contents is slow under tramp, Richard Stallman, 2007/08/24