Oct. 11, 2011
4:36 p.m.
My question was about ways to achieve a speedup without modifying the algorithm. I was hoping that there is some numpy-like library for python which for small arrays achieves a performance at least on par with the implementation using tuples. This should be possible technically.
I'm not aware of such a library. Writing one e.g. with Cython should be quite straightforward, however.
That's what I'll probably end up doing...