From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Major slowdown in set-buffer-multibyte Date: Mon, 25 Feb 2008 10:32:42 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203953649 8485 80.91.229.12 (25 Feb 2008 15:34:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Feb 2008 15:34:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 25 16:34:31 2008 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 1JTfLV-0001A9-4C for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 16:34:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTfKz-00069d-D7 for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 10:33:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTfKv-00068a-BY for emacs-devel@gnu.org; Mon, 25 Feb 2008 10:33:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTfKq-000656-Tb for emacs-devel@gnu.org; Mon, 25 Feb 2008 10:33:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTfKq-000651-R2 for emacs-devel@gnu.org; Mon, 25 Feb 2008 10:33:44 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTfKq-0006kz-H0 for emacs-devel@gnu.org; Mon, 25 Feb 2008 10:33:44 -0500 Original-Received: from ceviche.home (vpn-132-204-232-165.acd.umontreal.ca [132.204.232.165]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m1PFXgKs031033 for ; Mon, 25 Feb 2008 10:33:42 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6BA26B40C5; Mon, 25 Feb 2008 10:32:42 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: -2.5 X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:90399 Archived-At: I recently tried to open a zip file (6MB, nothing enormous), and it took me a while (1minute). Now, admittedly, I have all kinds of assertions and de-optimizations enabled, so I recompiled the trunk normally to check it wasn't my own fault, and the problem is still present. ELP tells me that set-buffer-multibyte is called twice and that the two calls take a total of 9s, with Emacs-22 opening the file is instantaneous. By hitting C-g a few times it seems that the problem is in the (set-buffer-multibyte 'to) call (i.e. converting from unibyte to singlebyte rather than the other way around). Could someone look into it? Stefan