[Core/Debugger/FileLoaders/FileSystems/MIPS] Using reserve if possible

This commit is contained in:
Herman Semenov
2023-12-15 13:59:19 +03:00
parent 773bbbd648
commit b871e76d05
14 changed files with 20 additions and 3 deletions

View File

@@ -651,6 +651,7 @@ std::vector<PSPFileInfo> ISOFileSystem::GetDirListing(const std::string &path, b
const std::string dot(".");
const std::string dotdot("..");
myVector.reserve(entry->children.size() - 2);
for (size_t i = 0; i < entry->children.size(); i++) {
TreeEntry *e = entry->children[i];