[C++-sig] Trouble optimizing Boost.python integration
Hans Meine
meine at informatik.uni-hamburg.de
Mon Sep 7 16:13:17 CEST 2009
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
More information about the Cplusplus-sig
mailing list