Avoid excessive resizing.

This commit is contained in:
JoelKatz
2013-03-14 10:00:44 -07:00
parent e56f7a8689
commit 82b91a1c41
2 changed files with 4 additions and 2 deletions

View File

@@ -309,6 +309,7 @@ void ValidationCollection::doWrite(Job&)
while (!mStaleValidations.empty())
{
std::vector<SerializedValidation::pointer> vector;
vector.reserve(512);
mStaleValidations.swap(vector);
sl.unlock();
{