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

Pauli Virtanen pav at iki.fi
Mon Nov 22 04:30:05 EST 2010


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.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list