[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettext.c patch: reuse memory
From: |
Carles Pina i Estany |
Subject: |
Re: gettext.c patch: reuse memory |
Date: |
Sun, 29 Nov 2009 18:36:34 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hi,
On Nov/29/2009, Carles Pina i Estany wrote:
> Find attached a new version of the same patch (same approach).
new one. Original strings can be free-ed.
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
(very rough numbers discarting 1000 pointers to next and 2000 pointers
to the original and translation strings, this would be aprox. 11.71 KB
more)
Cheers,
--
Carles Pina i Estany
http://pinux.info
gettext_memory3.patch
Description: Text Data
ChangeLog.memory
Description: Text document