From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: very slow archive-mode Date: Fri, 14 Mar 2008 12:43:15 +0900 Message-ID: References: <200803122247.58553.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1205466223 32655 80.91.229.12 (14 Mar 2008 03:43:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Mar 2008 03:43:43 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, pogonyshev@gmx.net To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 14 04:44:11 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 1Ja0q2-0004IG-OO for ged-emacs-devel@m.gmane.org; Fri, 14 Mar 2008 04:44:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ja0pT-0005K0-Nq for ged-emacs-devel@m.gmane.org; Thu, 13 Mar 2008 23:43:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ja0pQ-0005Jv-V3 for emacs-devel@gnu.org; Thu, 13 Mar 2008 23:43:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ja0pO-0005Jj-G1 for emacs-devel@gnu.org; Thu, 13 Mar 2008 23:43:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ja0pO-0005Jg-DS for emacs-devel@gnu.org; Thu, 13 Mar 2008 23:43:30 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ja0pN-0006z4-5p for emacs-devel@gnu.org; Thu, 13 Mar 2008 23:43:30 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m2E3hJCb010872; Fri, 14 Mar 2008 12:43:19 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m2E3hIJC021901; Fri, 14 Mar 2008 12:43:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id m2E3hFE9014082; Fri, 14 Mar 2008 12:43:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Ja0p9-0002ot-74; Fri, 14 Mar 2008 12:43:15 +0900 In-reply-to: (message from YAMAMOTO Mitsuharu on Fri, 14 Mar 2008 10:56:14 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (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:92477 Archived-At: In article , YAMAMOTO Mitsuharu writes: > > Also, IIUC the 8-bit bytes that are not represented as a single byte > > and not only more numerous, but they also take up more space (they > > used to take up just 2 bytes but now they take up what 3? 4? 5 > > bytes?). > IIUC, it still takes up just 2 bytes by cleverly using vacant UTF-8 > area (see character.h). Yes. > I think code_convert_region in Emacs 22 tried to avoid the repeated > reallocations and copies by estimating the necessary buffer size from > the intermediate result of conversion in progress. (And there were a > cast problem that affected its performance: > http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-12/msg00197.html) > Does the code conversion in Emacs 23 include such estimation? Not yet. But it's not related to the problem of slow set-buffer-multibyte. --- Kenichi Handa handa@ni.aist.go.jp