[Tutor] Moving my C++ code to Python?
Stefan Behnel
stefan_ml at behnel.de
Mon Oct 18 08:21:39 CEST 2010
Paul, 17.10.2010 23:29:
> Thank you all for your kind suggestions. It seem that cython and
> boost.python both look like a good suggestions; SWIG seems like a good
> tool, but may not meet my requirements.
> Quick google seems to suggest that boost.python is 7 times slower [1],
> however. Any thoughts about speed performance between the two?
Cython is an optimising compiler. It does various tweaks to your code that
make it run faster. So it's no surprise that it's faster than any other
Python wrapping tool out there.
http://behnel.de/cgi-bin/weblog_basic/index.php?p=38
http://behnel.de/cycppbench/
Stefan
More information about the Tutor
mailing list