Reserve space in vector.

This commit is contained in:
Bartosz Taudul
2019-05-23 18:34:29 +02:00
parent da4d0aa1b8
commit 1fdfdb0cc1
+1
View File
@@ -9419,6 +9419,7 @@ void View::CreateNextMemPageSnapshot()
}
std::vector<MemoryPage> snap;
snap.reserve( memmap.size() );
for( auto& page : memmap )
{
snap.emplace_back( page.second );