
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Qinfeng(Javen) Shi Sent: Monday, September 11, 2006 3:46 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] 3 times slower than c++
Dear all,
We are writing a python toolbox and wrapping it from c++ is much faster than pure python. But my wrapped c++ code(called in python) is 3 times(not plus a constant time) slower than the orignial c++ one.
I think the difference should be a constant not a factor. Because all the computation has been taken in *.so, the extra time cost is the time python load it at the beginning. Is that right?
Any opinion or suggestion about why or how to speed it up?
Are you wrapping with boost.python?
participants (1)
-
Sohail Somani