From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5099: 23.1; Performance problems in Emacs 23? Date: Wed, 02 Dec 2009 09:58:55 -0500 Message-ID: References: <84zl61daq4.fsf@cs.bham.ac.uk> Reply-To: Stefan Monnier , 5099@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259776462 2854 80.91.229.12 (2 Dec 2009 17:54:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 17:54:22 +0000 (UTC) Cc: 5099@emacsbugs.donarmstrong.com To: Uday S Reddy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 02 18:54:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFtP2-0000S5-LR for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 18:54:12 +0100 Original-Received: from localhost ([127.0.0.1]:48329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFtP2-0004jF-6K for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 12:54:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFqnl-0003mi-Sh for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 10:07:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFqnf-0003jE-Cl for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 10:07:32 -0500 Original-Received: from [199.232.76.173] (port=53934 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFqnf-0003j4-2W for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 10:07:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51975) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFqne-0002yN-74 for bug-gnu-emacs@gnu.org; Wed, 02 Dec 2009 10:07:26 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB2F7OEE009958; Wed, 2 Dec 2009 07:07:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB2F56fk009225; Wed, 2 Dec 2009 07:05:06 -0800 Resent-Date: Wed, 2 Dec 2009 07:05:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 02 Dec 2009 15:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5099 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5099-submit@emacsbugs.donarmstrong.com id=B5099.12597659448456 (code B ref 5099); Wed, 02 Dec 2009 15:05:06 +0000 Original-Received: (at 5099) by emacsbugs.donarmstrong.com; 2 Dec 2009 14:59:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB2Ex1Bf008453 for <5099@emacsbugs.donarmstrong.com>; Wed, 2 Dec 2009 06:59:03 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgoFAIwPFktLd/5a/2dsb2JhbACBTtYEhDEEihWDBA X-IronPort-AV: E=Sophos;i="4.47,328,1257138000"; d="scan'208";a="50491851" Original-Received: from 75-119-254-90.dsl.teksavvy.com (HELO pastel.home) ([75.119.254.90]) by ironport2-out.pppoe.ca with ESMTP; 02 Dec 2009 09:58:56 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C441C86C4; Wed, 2 Dec 2009 09:58:55 -0500 (EST) In-Reply-To: <84zl61daq4.fsf@cs.bham.ac.uk> (Uday S. Reddy's message of "Wed, 02 Dec 2009 08:46:43 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 02 Dec 2009 10:07:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33142 Archived-At: > However, having tried Emacs 23 for an hour, I have noticed very much > the same phenomenon. My main mail file is roughly 100MB large. > It takes Emacs 22 only about 5 seconds to save it, and the auto-save > pause is probably half that long. (I use a reasonably fast Solid > State Drive.) The CPU utilisation is an A-shaped curve, implying that > there is nothing much for the CPU to do. In contrast, Emacs 23 takes > about more than 20 seconds to save the same mail file and the CPU > utilisation is a pretty intensive burn for most of that time (20% on > one processor and 60% on a second processor). The auto-save pauses > are about 10-15 seconds long. > Now, VM mail files are raw-text. Saving them should be an I/O-bound > process. It is not clear why Emacs 23 should be burning CPU cycles to > save raw-text files and taking 3-5 times as long as Emacs 22. That's indeed surprising and I can't think of anything that could cause such a major slowdown. Maybe if the VM mail buffers (containing "raw-text") are left in multibyte mode, we do something inefficient somehow (but then again, it'd be surprising for those buffers to be in multibyte mode anyway). Stefan