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: Thu, 23 Aug 2007 17:02:15 +0200 Message-ID: <87r6lul2fc.fsf@escher.local.home> References: <87veb6l9b0.fsf@escher.local.home> <46CD98DC.1050701@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187881436 16660 80.91.229.12 (23 Aug 2007 15:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Aug 2007 15:03:56 +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 Thu Aug 23 17:03:53 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 1IOEDr-0007gV-E2 for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 17:03:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOEDr-0000sg-3h for ged-emacs-devel@m.gmane.org; Thu, 23 Aug 2007 11:03:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IOED4-0000Ts-IM for emacs-devel@gnu.org; Thu, 23 Aug 2007 11:02:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IOED3-0000TI-2d for emacs-devel@gnu.org; Thu, 23 Aug 2007 11:02:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IOED2-0000TD-UJ for emacs-devel@gnu.org; Thu, 23 Aug 2007 11:02:56 -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 1IOED2-0007ar-8R for emacs-devel@gnu.org; Thu, 23 Aug 2007 11:02:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IOECy-0001V4-BW for emacs-devel@gnu.org; Thu, 23 Aug 2007 17:02:52 +0200 Original-Received: from i577bcbe3.versanet.de ([87.123.203.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 17:02:52 +0200 Original-Received: from Stephen.Berman by i577bcbe3.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Aug 2007 17:02:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.devel Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: i577bcbe3.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:77036 gmane.emacs.pretest.bugs:19597 Archived-At: On Thu, 23 Aug 2007 16:25:32 +0200 martin rudalics wrote: >> Using edebug I found the slowdown occurs when insert-file-contents is >> called in find-file-noselect-1. I don't know how to debug it further. >> This slowdown did not exist in my previous Emacs build from 2007-06-30. > > Stefan found a bug in my recent changes to `insert-file-contents'. > I can't tell whether it's related to your problem but could you try > with the attached patch? It doesn't make a very big difference: it takes 17 seconds to open ChangeLog.12 as opposed to 20 seconds without the patch. (I assume I did it right: applied the patch and ran make in emacs/src to rebuild the emacs executable, without recompiling the lisp files.) Steve Berman