Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NDTYI-00062y-JY for mharc-grub-devel@gnu.org; Wed, 25 Nov 2009 20:53:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDTYG-00061z-Qt for grub-devel@gnu.org; Wed, 25 Nov 2009 20:53:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDTYC-0005xq-7A for grub-devel@gnu.org; Wed, 25 Nov 2009 20:53:44 -0500 Received: from [199.232.76.173] (port=48857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDTYB-0005xY-PY for grub-devel@gnu.org; Wed, 25 Nov 2009 20:53:39 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:42952 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDTY9-0004Zd-7h for grub-devel@gnu.org; Wed, 25 Nov 2009 20:53:38 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NDTY7-00053T-Ib for grub-devel@gnu.org; Thu, 26 Nov 2009 02:53:35 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NDTY7-0008Op-5l for grub-devel@gnu.org; Thu, 26 Nov 2009 02:53:35 +0100 Date: Thu, 26 Nov 2009 02:53:35 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091126015335.GB32241@thorin> References: <20091125223104.GA1032@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091125223104.GA1032@pina.cat> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: gettext: --no-hash in msgmft X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 01:53:45 -0000 On Wed, Nov 25, 2009 at 10:31:04PM +0000, Carles Pina i Estany wrote: > > Hello, > > I'm thinking to disable the hash table in the .mo files. It's not used > in Grub Kernel and it makes the size 10% bigger: > > In a 473 sentences po file with hash it's 30633 bytes and without 28109, > so it 's not a big difference. > > Do we want to disable or it's just some KB in /boot/grub and we don't > really mind? > > Explanation: the .mo files has a hash table (by default) but gettext > grub module is not using the hash table (it does search by bisection). > > Why? > a) code simpler and smaller > b) for the number of strings the speed is not a big difference* > c) less space used in /boot/grub/locale Makes sense for .mo files that we use in GRUB, but what about the system-wide .mo file, which is used by GRUB utilities? I assume gettext takes advantage of this hash table. Is it possible to strip the hash table when installing .mo files to /boot/grub ? (Btw, our scripts don't install .mo files to /boot yet, currently user has to do this manually) -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."