[Numpy-discussion] Performance of the array protocol
Chris Barker
Chris.Barker at noaa.gov
Tue Nov 1 10:07:59 EST 2005
Travis Oliphant wrote:
> So, I guess the answer to your question is that for small arrays it is
> an intrinsic limitation of the use of Python attributes in the array
> protocol.
IIRC, in the early discussion of the array protocol, we had talked about
defining a C struct, and a set of utilities to query that struct. Now, I
guess it uses Python attributes. Do I recall incorrectly, or has there
been a design change, or is this a prototype implementation? I guess I'd
like to see an array protocol that is as fast as fromstring(), even for
small arrays, though it's probably not a big deal. Also, when writing C
code to work with an array, it might be easier, as well as faster, to
not have to query Python attributes.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the NumPy-Discussion
mailing list