From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii 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 12:28:24 +0300 Message-ID: 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1187947771 21105 80.91.229.12 (24 Aug 2007 09:29:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2007 09:29:31 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 24 11:29:29 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 1IOVTs-0006NA-3w for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 11:29:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOVTr-0001bm-Gq for ged-emacs-devel@m.gmane.org; Fri, 24 Aug 2007 05:29:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOVT1-0001I9-Kb for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:28:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOVSz-0001HK-SH for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:28:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOVSz-0001H7-DX for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:28:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOVSz-0006xe-5p for emacs-devel@gnu.org; Fri, 24 Aug 2007 05:28:33 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOVSx-00076d-QS for emacs-pretest-bug@gnu.org; Fri, 24 Aug 2007 05:28:31 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IOVSu-0006w4-Uq for emacs-pretest-bug@gnu.org; Fri, 24 Aug 2007 05:28:32 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IOVSt-0006vh-FY for emacs-pretest-bug@gnu.org; Fri, 24 Aug 2007 05:28:28 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-47-9.inter.net.il [80.230.47.9]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id ISH98970 (AUTH halo1); Fri, 24 Aug 2007 12:28:18 +0300 (IDT) In-reply-to: <87fy2akjzt.fsf@escher.local.home> (message from Stephen Berman on Thu, 23 Aug 2007 23:40:22 +0200) X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:77083 gmane.emacs.pretest.bugs:19617 Archived-At: > 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.