On Tuesday 25 August 2009 23:48:02 Dan Sanduleac wrote: > The thing is, it proves to be kind of slow compared to Cython/Pyrex code > that does the same. I think it should run faster than Cython code.
I think this is because your vectors are too small. I think for such small objects, the implementation of vector operations is much faster than the overhead of BPL's argument/return type conversion, and the latter accounts for the slowdown. HTH, Hans _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig