Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-10-23 08:08:58


Ovanes Markarian wrote:

> Hello,
>
> we have some application, where boost::shared_ptr is extensively used.
> After profiling with gprof I got that the shared_ptr destructor is very
> expensive. I used following g++ compiler flags to compile:
>
> -Wall -ftemplate-depth-50 -fexceptions -fexpensive-optimizations -O3

It's not a good idea to use gprof to profile C++ applications. Try
callgrind.

> Are there may be some MACRO-defs, which can enable/disable some additional
> optimizations?

BTW, you did not say which platform you are on.

- Volodya


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