[SciPy-User] Bottleneck 0.4.1
Tue Mar 8 22:52:43 CST 2011
On Tue, Mar 8, 2011 at 8:18 PM, Wes McKinney <email@example.com> wrote:
> On Tue, Mar 8, 2011 at 10:17 PM, Keith Goodman <firstname.lastname@example.org> wrote:
>>> One random question. Any idea on the long import time:
>>> $ time python -c "import bottleneck"
>>> real 0m0.712s
>>> user 0m0.546s
>>> sys 0m0.114s
>>> $ time python -c "import numpy"
>>> real 0m0.142s
>>> user 0m0.090s
>>> sys 0m0.049s
>>> $ time python -c "import scipy"
>>> real 0m0.201s
>>> user 0m0.132s
>>> sys 0m0.066s
>> Bottleneck has many low-level functions, for example,
>> median_2d_float64_axis0, median_2d_float64_axis1,
>> median_2d_int32_axis0, etc, etc. Maybe that explains it? But scipy has
>> a lot of functions too, so I don't know.
> Yeah, I thought this was odd. Initially I thought perhaps it was due
> to the size of the DLLs. func.so and move.so but they are only 3 mb or
> so on my machine.
The timings on my machine (64-bit Ubuntu 10.10) are not quite as bad:
$ time python -c "import bottleneck"
$ time python -c "import numpy"
$ time python -c "import scipy"
I'm interested in ways to cut the import time if anyone knows of any.
More information about the SciPy-User