Observed Data : Improve performance when accessing curve values

This commit is contained in:
Magne Sjaastad committed 2017-11-08 07:44:06 +01:00
1 parent 0502b95d86
commit ea87c84d8c
1 file changed
+5
@@ -85,11 +85,16 @@ bool RifColumnBasedUserData::values(const RifEclipseSummaryAddress& resultAddres
const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second); const ColumnInfo* ci = m_parser->columnInfo(tableColIndices.first, tableColIndices.second);
if (!ci) return false; if (!ci) return false;
if (!ci->values.empty())
{
values->resize(ci->values.size());
for (const auto& v : ci->values) for (const auto& v : ci->values)
{ {
values->push_back(v); values->push_back(v);
} }
} }
}
return true; return true;
} }