On Mon, Apr 7, 2014, at 14:33, Alexander Belopolsky wrote: > On Mon, Apr 7, 2014 at 5:23 PM, Benjamin Peterson > <[email protected]>wrote: > > > I can understand why creating new array types is good fun, but how is > > creating a new struct helpful? > > > > We can start by reviewing the reasons for having separate > PyNumber/PySequence/PyMappingMethods > structures. I believe that one of the reasons is that many types need to > allocate only one of the three. Numpy arrays, IIRC, allocate all three. > A > dedicated PyArrayMethods struct can replace some if not all of these > allocations.
I can't say it seems like a terrible important thing to optimize to me. _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
