Vector performance improvements: dispatching to memcpy when possible.

[SVN r83271]
This commit is contained in:
Ion Gaztañaga
2013-03-03 12:26:48 +00:00
parent 9b0a73fc32
commit 6acbbb6f9b
18 changed files with 781 additions and 464 deletions
+2 -2
View File
@@ -426,7 +426,7 @@ class basic_string_base
{
if(this->is_short()){
if(other.is_short()){
container_detail::do_swap(this->members_.m_repr, other.members_.m_repr);
boost::container::swap_dispatch(this->members_.m_repr, other.members_.m_repr);
}
else{
short_t short_backup(this->members_.m_repr.short_repr());
@@ -447,7 +447,7 @@ class basic_string_base
this->members_.m_repr.short_repr() = short_backup;
}
else{
container_detail::do_swap(this->members_.m_repr.long_repr(), other.members_.m_repr.long_repr());
boost::container::swap_dispatch(this->members_.m_repr.long_repr(), other.members_.m_repr.long_repr());
}
}
}