On Fri, Feb 6, 2009 at 00:13, Christopher Barker <[email protected]> wrote: > Travis Oliphant wrote: >> What do people think >> about adding a default dictionary to every instance of a NumPy array. > > It sound kind of heavyweight to me. I tend to use lots of small arrays > (to represent an x,y point, for instance). There are enough performance > issues with that as it stands. Maybe an empty dict isn't much, but it is > extra.
I think we can create the dict on demand, so there will be no overhead except for the space for the pointer in the struct. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
