[C++-sig] profiling C++ extensions

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Sun Mar 3 08:08:39 CET 2002


--- greg Landrum <greglandrum at mindspring.com> wrote:
> I haven't looked into this (at the moment I don't have pickling set up with 
> the CXX wrapper, so I can't compare timings).
> 
> I guess maybe I wasn't super clear in my last message because of my focus 
> on pickling/depickling.  The timing information I gave (.9 seconds with 
> CXX, 6.7 with Boost) was for simple object instantiation, not 
> pickling/depickling.

Crossing the language boundary 100000 times to do a trivial
operation does not seem to be the best way of getting the
most out of combining Python and C++. Have you considered
a design where you pass (and pickle) C++ arrays of your
objects?
Ralf


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com




More information about the Cplusplus-sig mailing list