Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55100 - trunk/boost/unordered/detail
From: daniel_james_at_[hidden]
Date: 2009-07-22 18:38:09


Author: danieljames
Date: 2009-07-22 18:38:08 EDT (Wed, 22 Jul 2009)
New Revision: 55100
URL: http://svn.boost.org/trac/boost/changeset/55100

Log:
Adjust the unordered defaults so that emplace takes more parameters and less buckets are created by default.
Text files modified:
   trunk/boost/unordered/detail/hash_table.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/unordered/detail/hash_table.hpp
==============================================================================
--- trunk/boost/unordered/detail/hash_table.hpp (original)
+++ trunk/boost/unordered/detail/hash_table.hpp 2009-07-22 18:38:08 EDT (Wed, 22 Jul 2009)
@@ -15,7 +15,7 @@
 #include <boost/unordered/detail/config.hpp>
 
 #if !defined(BOOST_UNORDERED_EMPLACE_LIMIT)
-#define BOOST_UNORDERED_EMPLACE_LIMIT 5
+#define BOOST_UNORDERED_EMPLACE_LIMIT 10
 #endif
 
 #include <cstddef>
@@ -85,7 +85,7 @@
     namespace unordered_detail {
         template <class T> struct type_wrapper {};
 
- static const std::size_t default_initial_bucket_count = 50;
+ static const std::size_t default_initial_bucket_count = 11;
         static const float minimum_max_load_factor = 1e-3f;
 
         inline std::size_t double_to_size_t(double f)


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