From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3 Date: Thu, 23 Oct 2008 23:52:17 +0200 Message-ID: References: <20081022091136.GB924@muc.de> <20081022151444.GE924@muc.de> <48FF58FB.6000302@harpegolden.net> <20081022211202.GA1037@muc.de> <49001F5A.7040402@harpegolden.net> <20081023090908.GB2666@muc.de> <4900ACF9.7060501@harpegolden.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224798824 23650 80.91.229.12 (23 Oct 2008 21:53:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 21:53:44 +0000 (UTC) Cc: acm@muc.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 23 23:54:45 2008 connect(): Connection refused 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 1Kt88i-0001L1-CN for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2008 23:54:45 +0200 Original-Received: from localhost ([127.0.0.1]:56306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt87b-0003ti-QE for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2008 17:53:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kt86T-0003VG-D7 for emacs-devel@gnu.org; Thu, 23 Oct 2008 17:52:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kt86Q-0003UG-5l for emacs-devel@gnu.org; Thu, 23 Oct 2008 17:52:24 -0400 Original-Received: from [199.232.76.173] (port=42459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kt86P-0003UC-WD for emacs-devel@gnu.org; Thu, 23 Oct 2008 17:52:22 -0400 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:54182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kt86P-00022Y-Dl for emacs-devel@gnu.org; Thu, 23 Oct 2008 17:52:21 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.108.148]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9700LIBOTPE000@i_mtaout2.012.net.il> for emacs-devel@gnu.org; Thu, 23 Oct 2008 23:53:50 +0200 (IST) In-reply-to: <4900ACF9.7060501@harpegolden.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:104912 Archived-At: > Date: Thu, 23 Oct 2008 17:57:29 +0100 > From: David De La Harpe Golden > Cc: Stefan Monnier , emacs-devel@gnu.org > > I tried just putting 180 find-file-noselects in a file and loading it > i.e. > > $ find /usr/local/src/emacs -name '*.c' -printf \ > '(find-file-noselect "%p")\n' >fftest.el > $ emacs --batch --eval '(byte-compile-file "fftest.el")' > $ time emacs -l fftest.elc -f kill-emacs > > emacs run real user sys > 22 1 4.523 3.888 0.136 > 22 2 4.744 4.172 0.112 > 22 3 4.457 3.836 0.176 > 23 4 7.177 6.532 0.152 > 23 5 7.198 6.544 0.160 > 23 6 7.159 6.472 0.220 > > > So FWIW probably the problem is in the find-file call path rather than > anything desktop.el is doing in particular Sounds plausible. Next question: is the slow-down connected in any way with decoding the buffer? To see if this is a factor, you could compare 180 calls to insert-file-contents with the same number of calls to insert-file-contents-literally, in both Emacs 22 and 23. TIA