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: size of emacs executable after unicode merge Date: Wed, 12 Nov 2008 15:26:01 +0900 Message-ID: References: <200805140351.m4E3pQuE004549@sallyv1.ics.uci.edu> <200805141652.m4EGqikr018644@sallyv1.ics.uci.edu> <200805151529.m4FFTlF1004684@sallyv1.ics.uci.edu> <482D8435.6060407@gnu.org> <20081030101819.GA15223@orion.lan> <200810311507.m9VF7EAl022755@mothra.ics.uci.edu> <873ai7t7fx.fsf@cyd.mit.edu> <87iqqwk672.fsf@cyd.mit.edu> <873ahym8ji.fsf@cyd.mit.edu> 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 1226471199 722 80.91.229.12 (12 Nov 2008 06:26:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Nov 2008 06:26:39 +0000 (UTC) Cc: rms@gnu.org, emanuele.giaquinta@gmail.com, emacs-devel@gnu.org, dann@ics.uci.edu, monnier@iro.umontreal.ca, evilborisnet@netscape.net, jasonr@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 12 07:27:38 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 1L09CS-0006kP-OB for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2008 07:27:36 +0100 Original-Received: from localhost ([127.0.0.1]:40899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L09BK-0007IC-Md for ged-emacs-devel@m.gmane.org; Wed, 12 Nov 2008 01:26:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L09BD-0007I7-OE for emacs-devel@gnu.org; Wed, 12 Nov 2008 01:26:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L09B9-0007HU-RV for emacs-devel@gnu.org; Wed, 12 Nov 2008 01:26:18 -0500 Original-Received: from [199.232.76.173] (port=46965 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L09B9-0007HR-Iu for emacs-devel@gnu.org; Wed, 12 Nov 2008 01:26:15 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:53197) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L09B5-0007N1-HI; Wed, 12 Nov 2008 01:26:12 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id mAC6Q2HB020878; Wed, 12 Nov 2008 15:26:03 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id mAC6Q2o6013601; Wed, 12 Nov 2008 15:26:02 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id mAC6Q1Wj003263; Wed, 12 Nov 2008 15:26:01 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1L09Av-00007R-3w; Wed, 12 Nov 2008 15:26:01 +0900 In-reply-to: <873ahym8ji.fsf@cyd.mit.edu> (message from Chong Yidong on Tue, 11 Nov 2008 13:17:37 -0500) 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-operating-system: by monty-python.gnu.org: Solaris 9 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:105595 Archived-At: In article <873ahym8ji.fsf@cyd.mit.edu>, Chong Yidong writes: > Okay, I did a bit more digging. > I think the increase in the size of the Emacs executable is not due to > the allocation of char-tables. In particular, I've tried this > suggestion: > > One idea is to have a single boolean vector of size #x110000 > > (139264 bytes), setup it for CHARSET everytime when we call > > map-charset-chars for the different charset. In that > > vector, only the bit for #x3000, #x3001, #x3002, etc are 1 > > for chinese-gb2312. Then map-charset-chars can know for > > which characters FUNCTION must be called. > but it appears to free a negligible about of memory. But, that contradicts with this report from Yamamoto-san: > Anyway, an experiment on Mac OS X (*1) shows that clear-charset-maps > followed by GC actually collects some amount of data in heap (~7MB), > but they are not returned to the system, at least with its malloc > implementation. Did you comment out the calls of unify-charset in mule-conf.el and change the encoding of all preloaded *.el files to utf-8? --- Kenichi Handa handa@ni.aist.go.jp PS. Yidong, it seems that a few mails I wrote in this 24-hour didn't go out correctly. Did you get a mail about the comment on map_char_table_for_charset?