[Numpy-discussion] Numpy Overhead
sebastiankaster at googlemail.com
Tue Feb 28 18:24:53 EST 2017
Thank you! That is the information I needed.
2017-03-01 0:18 GMT+01:00 Matthew Brett <matthew.brett at gmail.com>:
> On Tue, Feb 28, 2017 at 3:04 PM, Sebastian K
> <sebastiankaster at googlemail.com> wrote:
> > Yes you are right. There is no need to add that line. I deleted it. But
> > measured heap peak is still the same.
> You're applying the naive matrix multiplication algorithm, which is
> ideal for minimizing memory use during the computation, but terrible
> for speed-related stuff like keeping values in the CPU cache:
> The Numpy version is likely calling into a highly optimized compiled
> routine for matrix multiplication, which can load chunks of the
> matrices at a time, to speed up computation. If you really need
> minimum memory heap usage and don't care about the order of
> magnitude(s) slowdown, then you might need to use the naive method,
> maybe implemented in Cython / C.
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion