This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Help needed reviewing Cyrillic -> ASCII transliteration [BZ #2872]
- From: Egor Kobylkin <egor at kobylkin dot com>
- To: Siddhesh Poyarekar <siddhesh at gotplt dot org>, Rafal Luzynski <digitalfreak at lingonborough dot com>, Carlos O'Donell <carlos at redhat dot com>, libc-alpha at sourceware dot org, libc-locales at sourceware dot org
- Date: Fri, 4 Jan 2019 01:27:04 +0100
- Subject: Re: Help needed reviewing Cyrillic -> ASCII transliteration [BZ #2872]
- References: <abf0875c-a9e7-0867-4f2a-67265c36f091@kobylkin.com> <a706684f-d011-c2e7-021c-c1946dfa702c@gotplt.org>
On 03.01.19 14:41, Siddhesh Poyarekar wrote:
On 03/01/19 4:52 PM, Egor Kobylkin wrote:
Is there a specific way you measure the bloat of the C locale?
Is it the size of the resulting libc.so.6 file we are concerned with?
I believe it's built into libc.so, so I suppose you'd have to look at
its file size.
I have build the library two times w/wo patch to compare the .so sizes:
(ls -l build/glibc/libc.so)
size without Cyrillic translit
17172016 bytes
size with Cyrillic translit (patch applied)
17180208 bytes
the difference is 8192 bytes
In terms of the source code we are just adding as many lines as there
are letters (169 insertions for Cyrillic in this patch v12)
Yeah, it will likely not be much for a single locale, but it may add up
across locales. I have no idea how much, it may well be insignificant.
From what I gathered if the Cyrillic translit table goes into the C
locale it doesn't have to be included into other locales. So it is only
included once with a ~8K size increase.
If another locale wants to have its own different transit table that
would then go on top but towards its own size budget.
Bests,
Egor