Better reserve of written records size

This commit is contained in:
baldurk
2020-08-04 17:52:10 +01:00
parent 31b7c35bae
commit 9f2de54521
+1 -1
View File
@@ -1038,7 +1038,7 @@ void ResourceManager<Configuration>::Serialise_InitialContentsNeeded(WriteSerial
rdcarray<WrittenRecord> WrittenRecords;
// reasonable estimate, and these records are small
WrittenRecords.reserve(m_FrameReferencedResources.size());
WrittenRecords.reserve(m_FrameReferencedResources.size() + m_InitialContents.size());
// all resources that were recorded as being modified should be included in the list of those
// needing initial contents