From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81654 invoked by alias); 4 Jan 2019 00:27:22 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 81607 invoked by uid 89); 4 Jan 2019 00:27:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=budget, HContent-Transfer-Encoding:8bit X-HELO: mout.kundenserver.de Subject: Re: Help needed reviewing Cyrillic -> ASCII transliteration [BZ #2872] To: Siddhesh Poyarekar , Rafal Luzynski , Carlos O'Donell , libc-alpha@sourceware.org, libc-locales@sourceware.org References: From: Egor Kobylkin Message-ID: <17de1415-5fad-167e-488f-6c17b139fc0b@kobylkin.com> Date: Fri, 04 Jan 2019 00:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2019-q1/txt/msg00015.txt.bz2 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