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

Pauli Virtanen pav@iki...
Thu Jul 5 14:48:38 CDT 2012


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

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



More information about the SciPy-Dev mailing list