$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54525 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2009-06-30 04:19:57
Author: chris_kohlhoff
Date: 2009-06-30 04:19:56 EDT (Tue, 30 Jun 2009)
New Revision: 54525
URL: http://svn.boost.org/trac/boost/changeset/54525
Log:
Don't rehash if the number of buckets hasn't changed.
Text files modified:
trunk/boost/asio/detail/hash_map.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/asio/detail/hash_map.hpp
==============================================================================
--- trunk/boost/asio/detail/hash_map.hpp (original)
+++ trunk/boost/asio/detail/hash_map.hpp 2009-06-30 04:19:56 EDT (Tue, 30 Jun 2009)
@@ -215,6 +215,9 @@
// Re-initialise the hash from the values already contained in the list.
void rehash(std::size_t num_buckets)
{
+ if (num_buckets == buckets_.size())
+ return;
+
iterator end = values_.end();
// Update number of buckets and initialise all buckets to empty.