diff options
author | jan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d> | 2014-05-12 07:57:25 +0000 |
---|---|---|
committer | jan.reininghaus <jan.reininghaus@8e3bb3c2-eed4-f18f-5264-0b6c94e6926d> | 2014-05-12 07:57:25 +0000 |
commit | 2994aeccfb932d210165df15678efd2b277f0cfe (patch) | |
tree | 0a6ebcd2a5c0b027934a848594504cc1b2dc8213 /include/phat/representations/vector_vector.h | |
parent | 49223e605dd738fef4350a85fee49435935ef1c3 (diff) |
improved vector_vector performance
git-svn-id: https://phat.googlecode.com/svn/trunk@172 8e3bb3c2-eed4-f18f-5264-0b6c94e6926d
Diffstat (limited to 'include/phat/representations/vector_vector.h')
-rw-r--r-- | include/phat/representations/vector_vector.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/phat/representations/vector_vector.h b/include/phat/representations/vector_vector.h index 06fd060..da8ec5a 100644 --- a/include/phat/representations/vector_vector.h +++ b/include/phat/representations/vector_vector.h @@ -87,7 +87,9 @@ namespace phat { std::set_symmetric_difference( target_col.begin(), target_col.end(),
source_col.begin(), source_col.end(),
std::back_inserter( temp_col ) );
- target_col.swap( temp_col );
+ //target_col.swap( temp_col );
+ target_col = temp_col;
+ temp_col.clear();
}
};
}
|