Boost logo

Boost :

Subject: Re: [boost] Please Help: Experienced very bad performance with Multi-index
From: Jarolin, Robert (Robert.Jarolin_at_[hidden])
Date: 2009-07-30 12:07:50


Thank you. Removing those seemed to help significantly. I am now having issues with removal up to an upper_bound value.
You mentioned "testing with release settings". How do I enable "release settings"?

Thanks

-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Joaquin M Lopez Munoz
Sent: Wednesday, July 29, 2009 4:58 PM
To: boost_at_[hidden]
Subject: Re: [boost]Please Help: Experienced very bad performance with Multi-index

Hi Robert,

Jarolin, Robert <Robert.Jarolin <at> trueposition.com> writes:

>
> Below is a sample program that I am running. If I create a
> multi-index as defined below, the performance as the number of entries
> increases gets to the point of being unusable.
>
> [...]
>
> #if !defined(NDEBUG)
> #define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING
> #define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE
> #endif

I strongly suspect this is the problem. Are you doing your performance tests in debug mode? If so, invariant and safe mode (specially the former) have a huge impact on performance.
They shouldn't be used in production, release mode. Try either not using these modes or, better yet, testing with release settings, which in your particular case implies disabling these modes as well. Please report back.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk