[Libreoffice] ICU bloat ...
samphan at osdev.co.th
Sat Jan 15 19:07:33 PST 2011
You can easily minimize the ICU footprint by tweaking the ICU build options.
<http://userguide.icu-project.org/packaging>The result will be like this -
On Fri, Jan 14, 2011 at 7:27 PM, Michael Meeks <michael.meeks at novell.com>wrote:
> Hi there,
> On Fri, 2011-01-07 at 12:22 -0600, Norbert Thiebaud wrote:
> > > Which makes me wonder: do we really need everything that is in
> > > beast ? pmap seems to suggest we use 84K out of the 13Mb on Linux:
> > Michael: icudata contains, among other things all the supported
> > utf16<->other-codepage convertion. If your locale is utf8 or iso8859-1/15
> > (which is most likely in your case) then sure you just need one or two
> > of these conversion table... if any at all (some convertion like
> > utf8<->utf16 are algorithmic)
> Sure. We have a patch for sal:
> sadly still not merged, since it needs re-testing on win32 - that
> a megabyte of this off of sal (exactly the same text encoding conversion
> > libicudata also contains stuff about collation and locales...
> Right - but it also seems that some (much?) of this data is not
> actually used :-) AFAICS we don't use the charset conversion data at
> all, preferring the sal stuff. There are whole fields of API that are
> simply not touched from ICU:
> 'ucnv_' (char set conversion !?)
> So - I suspect we could hack some big chunks of code, and data out
> this: the data is the biggest evil size-wise from a distribution
> perspective I suspect: 5.5Mb compressed of our win32 download is data we
> don't use [ one of the bigger lumps of pointlessness there ].
> > either way libicudata is big, but there is not that much redundancy in
> > it. it just covert and insanely large number of code page (
> sure sure :-) and we don't need that AFAICS, since we don't use the
> relevant APIs; and our internal ICU does not have to be a generic useful
> resource for abstract programs (particularly on Win32).
> So I added an easy hack here:
> michael.meeks at novell.com <><, Pseudo Engineer, itinerant idiot
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
_/|\_ Samphan Raruenrom. Open Source Development Co., Ltd.
Tel: +66 38 311816, Fax: +66 38 773128, http://www.osdev.co.th/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LibreOffice