Performance: Clear file reader cache after data is read

This commit is contained in:
Magne Sjaastad
2024-01-18 14:04:59 +01:00
parent 018e911736
commit e1007ca957

View File

@@ -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 )