mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance: Clear file reader cache after data is read
This commit is contained in:
@@ -127,6 +127,10 @@ bool RifReaderOpmCommon::staticResult( const QString& result, RiaDefines::Porosi
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Always clear data after reading to avoid memory use
|
||||
m_initFile->clearData();
|
||||
|
||||
return true;
|
||||
}
|
||||
catch ( std::exception& e )
|
||||
@@ -179,6 +183,9 @@ bool RifReaderOpmCommon::dynamicResult( const QString& result,
|
||||
}
|
||||
}
|
||||
|
||||
// Always clear data after reading to avoid memory use
|
||||
m_restartFile->clearData();
|
||||
|
||||
return true;
|
||||
}
|
||||
catch ( std::exception& e )
|
||||
|
||||
Reference in New Issue
Block a user