mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Summary performance improvements
* Check flag before rebuilding summary address nodes * Performance: Use vector instead of set and map locally in thread * Performance: Skip looking for restart summary filenames for opm-common * Move adding of case realization parameters to OpenMP loop * Add unit test for file path operations * Performance: Avoid using cdUp() function when splitting path into strings
This commit is contained in:
@@ -460,6 +460,7 @@ void RimSummaryCaseMainCollection::loadFileSummaryCaseData( std::vector<RimFileS
|
||||
if ( fileSummaryCase )
|
||||
{
|
||||
fileSummaryCase->createSummaryReaderInterfaceThreadSafe( &threadSafeLogger );
|
||||
addCaseRealizationParametersIfFound( *fileSummaryCase, fileSummaryCase->summaryHeaderFilename() );
|
||||
}
|
||||
|
||||
progInfo.setProgress( cIdx );
|
||||
@@ -482,7 +483,6 @@ void RimSummaryCaseMainCollection::loadFileSummaryCaseData( std::vector<RimFileS
|
||||
if ( fileSummaryCase )
|
||||
{
|
||||
fileSummaryCase->createRftReaderInterface();
|
||||
addCaseRealizationParametersIfFound( *fileSummaryCase, fileSummaryCase->summaryHeaderFilename() );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -648,9 +648,13 @@ void RimSummaryCaseMainCollection::updateAutoShortName()
|
||||
//
|
||||
// https://github.com/OPM/ResInsight/issues/7438
|
||||
|
||||
for ( auto s : allSummaryCases() )
|
||||
auto sumCases = allSummaryCases();
|
||||
|
||||
#pragma omp parallel for
|
||||
for ( int cIdx = 0; cIdx < static_cast<int>( sumCases.size() ); ++cIdx )
|
||||
{
|
||||
s->updateAutoShortName();
|
||||
auto sumCase = sumCases[cIdx];
|
||||
sumCase->updateAutoShortName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user