mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
[Core/Debugger/FileLoaders/FileSystems/MIPS] Using reserve if possible
This commit is contained in:
1 parent
773bbbd648
commit
b871e76d05
14 files changed
+20
-3
No files matched your search
@@ -591,6 +591,7 @@ void DisassemblyFunction::addOpcodeSequence(u32 start, u32 end)
|
||||
DisassemblyOpcode* opcode = new DisassemblyOpcode(start,(end-start)/4);
|
||||
std::lock_guard<std::recursive_mutex> guard(lock_);
|
||||
entries[start] = opcode;
|
||||
lineAddresses.reserve((end - start) / 4);
|
||||
for (u32 pos = start; pos < end; pos += 4)
|
||||
{
|
||||
lineAddresses.push_back(pos);
|
||||
|
||||
Reference in new issue
Block a user