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: Fri, 14 Nov 2008 09:48:45 +0900 Message-ID: References: <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> <87r65flh5n.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 1226623756 15147 80.91.229.12 (14 Nov 2008 00:49:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2008 00:49:16 +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 Fri Nov 14 01:50:16 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 1L0mt6-00075M-Kp for ged-emacs-devel@m.gmane.org; Fri, 14 Nov 2008 01:50:16 +0100 Original-Received: from localhost ([127.0.0.1]:59248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0mrv-0001gn-BY for ged-emacs-devel@m.gmane.org; Thu, 13 Nov 2008 19:49:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0mrr-0001gM-MB for emacs-devel@gnu.org; Thu, 13 Nov 2008 19:48:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0mrp-0001eQ-VG for emacs-devel@gnu.org; Thu, 13 Nov 2008 19:48:59 -0500 Original-Received: from [199.232.76.173] (port=42897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0mrp-0001e9-Pe for emacs-devel@gnu.org; Thu, 13 Nov 2008 19:48:57 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:53875) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0mrm-0003ET-CC; Thu, 13 Nov 2008 19:48:54 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id mAE0mlAc029185; Fri, 14 Nov 2008 09:48:47 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id mAE0mkMT018805; Fri, 14 Nov 2008 09:48:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id mAE0mkB2009051; Fri, 14 Nov 2008 09:48:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1L0mrd-0006sB-Si; Fri, 14 Nov 2008 09:48:45 +0900 In-reply-to: <87r65flh5n.fsf@cyd.mit.edu> (message from Chong Yidong on Thu, 13 Nov 2008 11:33:40 -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:105679 Archived-At: In article <87r65flh5n.fsf@cyd.mit.edu>, Chong Yidong writes: > Commenting out the calls to unify-charset does reduce the memory by > several megabytes. > But I'm not sure I understand your idea correctly. Here's the approach > I tried, do you think it is correct? > - introduce a variable called inhibit-load-charsets-map, defaulting to > nil > - In loadup.el, let-bind inhibit-load-charsets-map to t when loading > characters.el. > - In map_charset_chars, when inhibit-load-charsets-map is non-nil, and > the charset method is deferred, don't call load_charset and > map_char_table_for_charset. Instead, call a new function > map_charset_chars_from_file. > - The new function map_charset_chars_from_file reads the code points and > character codes from the charset file and applies the function > argument passed to map_charset_chars on those codes directly. > Would this work? I think so, but perhaps it is better that we just set inhibit-load-charsets-map to t before loading mule-conf, and set it to nil just before dumping. And signal an error when it is found that loading a charaset map is necessary while inhibit-load-charsets-map is non-nil. And, we also have to modify `unify-charset' not to call load_charset_map_from_file but just to setup up Vchar_unify_table so that all characters in upper space that must be unified with Unicode have value `t'. How about making a branch, say "reduce-dump-size", and commit your change so that I can check the code? --- Kenichi Handa handa@ni.aist.go.jp