Reserve locals space of average of one source var per instruction

This commit is contained in:
Jake Turner
2024-12-19 20:47:30 +00:00
parent 2dda3e2f03
commit 02c187fa26
@@ -6709,6 +6709,7 @@ void Debugger::ParseDebugData()
const FunctionInfo &info = m_FunctionInfos[f];
uint32_t countInstructions = (uint32_t)f->instructions.size();
program->m_Locals.reserve(countInstructions);
for(uint32_t i = 0; i < countInstructions; ++i)
{
if(f->instructions[i]->debugLoc == ~0U)