Boost logo

Boost Users :

From: Markus Werle (yg-boost-users_at_[hidden])
Date: 2003-02-10 07:19:42


Hi!

Today's profiling of my code (which massively uses boost::function
to collect formulas) showed that boost::function2' copy constructor is
called zillions of times.

OK, I disabled inlining to get some more details, but this I do not
understand. The functors are created, stored in an array and
do not get copied again, but rather referenced there.

Before I dig in that code: where do those copies come from?
Is that the normal behaviour triggered ny operator() or is that a
hint that I use them the wrong way?

Any experience? At present the boost::function overhead
kills my application. Tuning tipps?

best regards,

Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net