From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: size of emacs executable after unicode merge Date: Mon, 10 Nov 2008 18:18:50 -0500 Message-ID: <87skpz890l.fsf@cyd.mit.edu> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226359140 24374 80.91.229.12 (10 Nov 2008 23:19:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2008 23:19:00 +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: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 11 00:20:01 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 1Kzg36-0005uI-HW for ged-emacs-devel@m.gmane.org; Tue, 11 Nov 2008 00:20:00 +0100 Original-Received: from localhost ([127.0.0.1]:36122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzg1y-0003A8-P0 for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 18:18:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kzg1u-00039t-6z for emacs-devel@gnu.org; Mon, 10 Nov 2008 18:18:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kzg1r-00039h-Pk for emacs-devel@gnu.org; Mon, 10 Nov 2008 18:18:44 -0500 Original-Received: from [199.232.76.173] (port=60208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzg1r-00039e-KU for emacs-devel@gnu.org; Mon, 10 Nov 2008 18:18:43 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:39272) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kzg1m-0001mq-Py; Mon, 10 Nov 2008 18:18:38 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id A5AC657E1D6; Mon, 10 Nov 2008 18:18:50 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Mon, 10 Nov 2008 10:59:27 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:105547 Archived-At: One thing I've noticed from playing around with the code: a lot of the size increase comes from this code portion in map_charset_chars: if (CHARSET_UNIFIED_P (charset) && CHAR_TABLE_P (CHARSET_DEUNIFIER (charset))) { map_char_table_for_charset (c_function, function, CHARSET_DEUNIFIER (charset), arg, partial ? charset : NULL, from, to); } Commenting this out reduces the size of the Emacs executable by 6M. But AFAICT map_char_table_for_charset doesn't create any new char-tables, so maybe our understanding of the problem isn't correct.