[SciPy-Dev] Cython as build dependency, file/dll size and current issues

Ralf Gommers ralf.gommers at googlemail.com
Thu Jul 5 15:59:09 EDT 2012


On Thu, Jul 5, 2012 at 9:48 PM, Pauli Virtanen <pav at iki.fi> wrote:

> 05.07.2012 21:37, Ralf Gommers kirjoitti:
> [clip]
> >     > That still leaves the (mostly orthogonal) question about binary
> >     size. I just
> >     > built Ray's PR, _nd_label.so is 1.4 Mb. For one function.
> >
> >     Hmm.   1.4 Mb seems OK to me for the binary
> >
> > Really? For one function? If we do that for each function, we end up
> > with 4 Gb.
>
> The stripped code size is about 300k for the functions, and there's 200k
> of overhead code.
>
> That's still not so little, think 15 years back...
>
> Original file:
>
> $ strip ndimage/_ni_label.so ; ls -l ndimage/_ni_label.so
> -rwxr-x--- 1 pauli pauli 505752 heinä  5 21:40 ndimage/_ni_label.so
>
> Larger for me. Strip takes off 200 kb. On OS X everything is double
(universal binary), not sure where the other factor of 2 comes from:

$ strip -u -r _ni_label.so
$ ls -l
rwxr-xr-x   1 rgommers  staff  1205404 Jul  5 21:56 _ni_label.so

Ralf

All functions in the file duplicated and renamed:
>
> $ strip ndimage/_ni_label.so ; ls -l ndimage/_ni_label.so
> -rwxr-x--- 1 pauli pauli 819608 heinä  5 21:44 ndimage/_ni_label.so
>
> To get more insight what could be cut would need looking into the code
> Cython generates.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20120705/8774f8e5/attachment.html>


More information about the SciPy-Dev mailing list