Hello, I have written a python extension module, tinyarray, (to be made public soon) which implements an important subset of numpy optimized for _small_ arrays. Tinyarrays are immutable, which makes them usable as dictionary keys.
Some important operations, i.e. creation of a small array from a tuple or the scalar product of two small arrays are 10 to 45 times faster than with numpy. This can really boost the performance of programs which use small numpy arrays. (I know that numpy is meant to be used for large arrays, but there are legitimate uses of small arrays as well.) It would be great if Cython could support tinyarrays. Right now, it doesn't. See http://article.gmane.org/gmane.comp.python.cython.user/7329 (As a temporary workaround, I have to made the buffers writable. But this breaks strict immutability.) Would fixing this be a lot of work? Cheers, Christoph _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel