Performance : Cache result of some string manipulation functions

These functions get called quite often, and popped up based on profiling.
This commit is contained in:
Magne Sjaastad
2022-05-05 13:31:49 +02:00
parent e426364fd5
commit 8daf25ffb3
3 changed files with 48 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
#include "RiaTextStringTools.h"
#include "RiaVersionInfo.h"
#include "RiaViewRedrawScheduler.h"
#include "RiaWellNameComparer.h"
#include "ExportCommands/RicSnapshotAllViewsToFileFeature.h"
#include "HoloLensCommands/RicHoloLensSessionManager.h"
@@ -782,6 +783,8 @@ void RiaApplication::closeProject()
m_project->close();
m_commandQueue.clear();
RiaWellNameComparer::clearCache();
onProjectClosed();
caf::PdmUiModelChangeDetector::instance()->reset();