Observed Data : Improve performance when accessing curve values

This commit is contained in:
Magne Sjaastad 2017-11-08 07:44:06 +01:00
parent 0502b95d86
commit ea87c84d8c

View File

@ -85,9 +85,14 @@ bool RifColumnBasedUserData::values(const RifEclipseSummaryAddress& resultAddres
const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second);
if (!ci) return false;
for (const auto& v : ci->values)
if (!ci->values.empty())
{
values->push_back(v);
values->resize(ci->values.size());
for (const auto& v : ci->values)
{
values->push_back(v);
}
}
}