Reduce the workload on VariableValue

Last compute at the last minute, if needed.
This commit is contained in:
Felipe Zimmerle
2020-09-17 19:51:34 -03:00
parent 744a82d181
commit 7749d198e1
24 changed files with 255 additions and 172 deletions

View File

@@ -113,7 +113,8 @@ void InMemoryPerProcess::resolveMultiMatches(const std::string& var,
if (ke.toOmit(var)) {
continue;
}
l->insert(l->begin(), std::make_shared<VariableValue>(&m_name, &var, &it->second));
l->insert(l->begin(), std::make_shared<VariableValue>(&m_name, &it->first, &it->second));
}
}
}