Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NEpdn-0003HH-5f for mharc-grub-devel@gnu.org; Sun, 29 Nov 2009 14:41:03 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEpdl-0003GW-87 for grub-devel@gnu.org; Sun, 29 Nov 2009 14:41:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEpdg-0003Ed-Ph for grub-devel@gnu.org; Sun, 29 Nov 2009 14:41:00 -0500 Received: from [199.232.76.173] (port=36570 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEpdg-0003EX-H1 for grub-devel@gnu.org; Sun, 29 Nov 2009 14:40:56 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:35686 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEpdg-0007m6-Ez for grub-devel@gnu.org; Sun, 29 Nov 2009 14:40:56 -0500 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTP id A0375288FBA3F for ; Sun, 29 Nov 2009 20:40:54 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 1EB3410BC0; Sun, 29 Nov 2009 19:40:55 +0000 (GMT) Date: Sun, 29 Nov 2009 19:40:55 +0000 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20091129194055.GB24603@pina.cat> References: <20091129004950.GA7856@pina.cat> <20091129103625.GA31541@pina.cat> <20091129183634.GA19323@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091129183634.GA19323@pina.cat> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: gettext.c patch: reuse memory 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: Sun, 29 Nov 2009 19:41:01 -0000 Hi, On Nov/29/2009, Carles Pina i Estany wrote: > Just some numbers: if there are 1000 strings used (far too much! Grub > loader will not have so much or users will not use in the same session) > and each string is 50 characters (far too much too :-) ) strings are > usually shorter) and the translation is 50 characters the list will use > aprox. 100 KB. > > (50 + 50) * 1000 / 1024 = 97.65 KB I think that this is more like (7 + 7) * 60 = 840 bytes, less than 1 KB. One approach is that we use the list for now and I prepare a benchmark code (it's very easy). When more things are translated we can reconsider it with some numbers and not "guesses" and "I think". -- Carles Pina i Estany http://pinux.info