Adjust the unordered defaults so that emplace takes more parameters and less buckets are created by default.

[SVN r55100]
This commit is contained in:
Daniel James
2009-07-22 22:38:08 +00:00
parent 7bc588d8df
commit 3c48fa3818

View File

@ -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 boost {
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)