mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Several performance fixes (#9026)
* #9023 Performance: Use count instead of for loop * #9023 Analyzer: Cache vector names for categories * #9023 Performance : Use cached ensemble analyzer * #9023 Performance : Add min/max values to ensemble statistics * #9023 Performance : Improve statistics calculator * #9023 Performance : Use high performance toInt() * #9023 Performance : Build summary addresses in parallell
This commit is contained in:
@@ -57,13 +57,5 @@ bool RifSummaryReaderInterface::hasAddress( const RifEclipseSummaryAddress& resu
|
||||
static const RifEclipseSummaryAddress defaultAdr = RifEclipseSummaryAddress();
|
||||
if ( resultAddress == defaultAdr ) return true;
|
||||
|
||||
for ( const RifEclipseSummaryAddress& summaryAddress : m_allResultAddresses )
|
||||
{
|
||||
if ( summaryAddress == resultAddress )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return ( m_allResultAddresses.count( resultAddress ) > 0 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user