Re: [Boost-bugs] [Boost C++ Libraries] #290: perfomance: memory cleanup for pool takes too long

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #290: perfomance: memory cleanup for pool takes too long
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-08 15:37:14


#290: perfomance: memory cleanup for pool takes too long
----------------------+-----------------------------------------------------
  Reporter: nobody | Owner: shammah
      Type: Bugs | Status: closed
 Milestone: | Component: pool
   Version: None | Severity: Problem
Resolution: invalid | Keywords:
----------------------+-----------------------------------------------------
Changes (by fkonvick):

  * status: reopened => closed
  * resolution: => invalid

Comment:

 I also observed the problem, but there is a simple explanation. If you use
 MANY std::vector objects using boost::pool_allocator, then you might run
 into this problem. This is, AFAICT, by design - the vectors are just
 deallocated out of the "ideal" order. (You should not use other std
 containers with this allocator.)

 The solution is - just use std::allocator for std::vector (the performance
 is comparable). For the rest, use boost::fast_pool_allocator.

 (There are other solutions possible, but this is a bit OOT here.)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/290#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC