Reduced loading time of Eclipse Ascii files by storing filepos for keywords

QFile is used directly due to a bug with QTextStream fixed in 4.8.0
p4#: 19079
This commit is contained in:
Magne Sjaastad
2012-10-08 19:44:10 +02:00
parent 03ede069c1
commit 65acad250c
3 changed files with 169 additions and 46 deletions

View File

@@ -220,8 +220,8 @@ void RimInputReservoir::loadAndSyncronizeInputProperties()
if (isExistingFile)
{
std::vector<QString> fileKeywords = RifEclipseInputFileTools::findKeywordsOnFile(filenames[i]);
for_all(fileKeywords, fkIt) fileKeywordSet.insert(fileKeywords[fkIt]);
std::vector< RifKeywordAndFilePos > fileKeywords = RifEclipseInputFileTools::findKeywordsOnFile(filenames[i]);
for_all(fileKeywords, fkIt) fileKeywordSet.insert(fileKeywords[fkIt].keyword);
}
// Find the input property objects referring to the file