[SciPy-dev] Speed tests
arnd.baecker at web.de
Thu Oct 20 02:01:14 CDT 2005
On Wed, 19 Oct 2005, Travis Oliphant wrote:
> Currently, there is a bit more overhead for ufuncs in scipy core then
> there was in Numeric.
> This overhead is not especially significant for large arrays. However,
> for small arrays, it can mean 2x-3x slowdown. The code attached shows a
> case where I observe a 2x slowdown.
> About half of the overhead is due to looking up an error mask, a
> callback function, and a buffer size in the local, global, and builtin
> scope. (If I just use defaults and don't try and look them up, the
> slow-down shown by the attached test goes to about 50% slower).
> So, the question is, Is this acceptable, or should a different approach
> to setting the error mask be taken?
Without knowing the meaning of the three calls I am tempted to say
speed speed speed ;-)
But this is really a statement in complete ignorance of what is
going on ;-)...
More information about the Scipy-dev