|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54173 - sandbox/monotonic/boost/monotonic/detail
From: christian.schladetsch_at_[hidden]
Date: 2009-06-21 23:33:54
Author: cschladetsch
Date: 2009-06-21 23:33:53 EDT (Sun, 21 Jun 2009)
New Revision: 54173
URL: http://svn.boost.org/trac/boost/changeset/54173
Log:
changed pool::expand to grow slower
Text files modified:
sandbox/monotonic/boost/monotonic/detail/pool.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/detail/pool.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/detail/pool.hpp (original)
+++ sandbox/monotonic/boost/monotonic/detail/pool.hpp 2009-06-21 23:33:53 EDT (Sun, 21 Jun 2009)
@@ -35,7 +35,7 @@
template <class Storage>
void expand(Storage *storage)
{
- size_t capacity = std::max(DefaultSizes::MinPoolSize*bucket_size, (last - first)*bucket_size*2);
+ size_t capacity = std::max(DefaultSizes::MinPoolSize*bucket_size, (last - first)*2);
void *ptr = storage->from_fixed(capacity, 16);
if (ptr == 0)
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk