From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.50; insert-file-contents is slow under tramp Date: Fri, 24 Aug 2007 11:35:50 +0200 Message-ID: <871wdtff61.fsf@escher.local.home> References: <87veb6l9b0.fsf@escher.local.home> <46CD98DC.1050701@gmx.at> <87r6lul2fc.fsf@escher.local.home> <46CDC8B3.7000301@gmx.at> <46CDED2B.3080904@gmx.at> <87k5rmkmu0.fsf@escher.local.home> <46CDF5B7.2030201@gmx.at> <87fy2akjzt.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187948230 22514 80.91.229.12 (24 Aug 2007 09:37:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 09:37:10 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 24 11:37:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IOVb9-0000Mj-Us for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 11:37:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOVb9-0005YL-Ca for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 05:36:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOVaa-00052M-P7 for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:36:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOVaZ-00050f-6I for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:36:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOVaY-00050T-LC for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:36:22 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IOVaY-0001U8-8B for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:36:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IOVaM-0000gq-U2 for emacs-devel@gnu.org; Fri, 24 Aug 2007 11:36:10 +0200 Original-Received: from i577bc22e.versanet.de ([87.123.194.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2007 11:36:10 +0200 Original-Received: from Stephen.Berman by i577bc22e.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2007 11:36:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bc22e.versanet.de User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77084 gmane.emacs.pretest.bugs:19618 Archived-At: On Fri, 24 Aug 2007 12:28:24 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Date: Thu, 23 Aug 2007 23:40:22 +0200 >> Cc: emacs-devel@gnu.org >> >> > 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