[Python-Dev] Re: other "magic strings" issues

Alex Martelli aleaxit at yahoo.com
Wed Nov 12 03:55:49 EST 2003


On Tuesday 11 November 2003 09:21 pm, Martin v. Löwis wrote:
> Guido van Rossum wrote:
> > How big would ICU binaries for Windows be?  I don't mind bloating the
> > Windows installer by a few MB.  As long as it doesn't have to land in
> > CVS...
>
> See
>
> ftp://www-126.ibm.com/pub/icu/2.6.1/icu-2.6.1.zip
>
> I haven't actually downloaded it because of size (9MB); the zip file
> may contain header files and the like which we shouldn't ship.

I have downloaded it, and it's a sources zipfile (needs to be unpacked
with the -a to unzip, on Linux).  I'm not quite sure of how to estimate
the size of the Windows binaries since I don't have a decent Windows
system to build it on at the moment.  For a Linux-on-386 build, I see:

[alex at lancelot source]$ size /usr/local/lib/libicu*.so.26.1
   text    data     bss     dec     hex filename
8449053    3948       4 8453005  80fb8d /usr/local/lib/libicudata.so.26.1
 875940   14528     908  891376   d99f0 /usr/local/lib/libicui18n.so.26.1
  51426    4296       8   55730    d9b2 /usr/local/lib/libicuio.so.26.1
 145377    4160       4  149541   24825 /usr/local/lib/libicule.so.26.1
  29860    1244       4   31108    7984 /usr/local/lib/libiculx.so.26.1
  26339    1004       4   27347    6ad3 /usr/local/lib/libicutoolutil.so.26.1
 664190   21100     356  685646   a764e /usr/local/lib/libicuuc.so.26.1

and zipping just these .so.26.1 files to gain an idea of their overall
compressibility gives me:

alex at lancelot source]$ zip fup /usr/local/lib/libicu*.so.26.1
  adding: usr/local/lib/libicudata.so.26.1 (deflated 54%)
  adding: usr/local/lib/libicui18n.so.26.1 (deflated 65%)
  adding: usr/local/lib/libicuio.so.26.1 (deflated 64%)
  adding: usr/local/lib/libicule.so.26.1 (deflated 70%)
  adding: usr/local/lib/libiculx.so.26.1 (deflated 65%)
  adding: usr/local/lib/libicutoolutil.so.26.1 (deflated 55%)
  adding: usr/local/lib/libicuuc.so.26.1 (deflated 60%)
[alex at lancelot source]$ ll fup.zip
-rw-rw-r--    1 alex     alex      4790641 Nov 12 09:53 fup.zip

I'm sure I've forgotten something, but I hope the sizes are roughly
indicative and about 5MB compressed, 10MB on disk, are more or
less what we could be adding to the Python windows installer if
it came with ICU.

Perhaps somebody with a decent Windows platform can measure
this more accurately!-)


Alex




More information about the Python-Dev mailing list