[Numpy-discussion] Slow element-by-element access?

Charles R Harris charlesr.harris at gmail.com
Mon Nov 22 10:32:54 EST 2010


On Mon, Nov 22, 2010 at 2:30 AM, Pauli Virtanen <pav at iki.fi> wrote:

> Sun, 21 Nov 2010 23:26:37 -0700, Charles R Harris wrote:
> [clip]
> > Yes, indexing is known to be slow, although I don't recall the precise
> > reason for that. Something to do with way integers are handled or some
> > such. There was some discussion on the list many years ago...
>
> It could be useful if someone spent time on profiling the call overhead
> for integer indexing. From what I remember from that part of the code,
> I'm fairly sure it can be optimized.
>
>
I was thinking the same. Profiling the code could be very useful.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101122/eb1367ae/attachment.html>


More information about the NumPy-Discussion mailing list