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

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

No files matched your search

@@ -127,6 +127,7 @@ std::vector<Path> DiskCachingFileLoader::GetCachedPathsInUse() {
// This is on the file loader so that it can manage the caches_.
std::vector<Path> files;
files.reserve(caches_.size());
for (auto it : caches_) {
files.push_back(it.first);