[Numpy-discussion] Numpy Overhead
jfoxrabinovitz at gmail.com
Tue Feb 28 17:17:33 EST 2017
It would really help to see the code you are using in both cases as well as
some heap usage numbers...
On Tue, Feb 28, 2017 at 5:12 PM, Sebastian K <sebastiankaster at googlemail.com
> Thank you for your answer.
> For example a very simple algorithm is a matrix multiplication. I can see
> that the heap peak is much higher for the numpy version in comparison to a
> pure python 3 implementation.
> The heap is measured with the libmemusage from libc:
> *heap peak*
> Maximum of all *size* arguments of malloc(3) <http://man7.org/linux/man-pages/man3/malloc.3.html>, all products
> of *nmemb***size* of calloc(3) <http://man7.org/linux/man-pages/man3/calloc.3.html>, all *size* arguments of
> realloc(3) <http://man7.org/linux/man-pages/man3/realloc.3.html>, *length* arguments of mmap(2) <http://man7.org/linux/man-pages/man2/mmap.2.html>, and *new_size*
> arguments of mremap(2) <http://man7.org/linux/man-pages/man2/mremap.2.html>.
> On 28 Feb 2017 11:03 p.m., "Benjamin Root" <ben.v.root at gmail.com> wrote:
>> You are going to need to provide much more context than that. Overhead
>> compared to what? And where (io, cpu, etc.)? What are the size of your
>> arrays, and what sort of operations are you doing? Finally, how much
>> overhead are you seeing?
>> There can be all sorts of reasons for overhead, and some can easily be
>> mitigated, and others not so much.
>> Ben Root
>> On Tue, Feb 28, 2017 at 4:47 PM, Sebastian K <
>> sebastiankaster at googlemail.com> wrote:
>>> Hello everyone,
>>> I'm interested in the numpy project and tried a lot with the numpy
>>> array. I'm wondering what is actually done that there is so much overhead
>>> when I call a function in Numpy. What is the reason?
>>> Thanks in advance.
>>> Sebastian Kaster
>>> NumPy-Discussion mailing list
>>> NumPy-Discussion at scipy.org
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion