Performance: Slow performance for some plot and curve operations

* Performance: Cache registry value
* Performance: Avoid recursive update
Early return if values are identical
updateConnectedEditors is handled by setValueFromUiEditor
Avoid fieldChanged in analyzePlotsAndAdjustAppearanceSettings
This commit is contained in:
Magne Sjaastad
2023-08-25 10:39:19 +02:00
committed by GitHub
parent d198dc8537
commit 3800246b79
8 changed files with 20 additions and 13 deletions

View File

@@ -140,6 +140,8 @@ void PdmUiFieldHandle::enableAndSetAutoValue( const QVariant& autoValue )
//--------------------------------------------------------------------------------------------------
void PdmUiFieldHandle::setAutoValue( const QVariant& autoValue, bool notifyFieldChanged )
{
if ( m_autoValue == autoValue ) return;
m_autoValue = autoValue;
applyAutoValueAndUpdateEditors( notifyFieldChanged );
@@ -257,7 +259,6 @@ void PdmUiFieldHandle::applyAutoValueAndUpdateEditors( bool notifyFieldChanged )
if ( m_useAutoValue && m_autoValue.isValid() )
{
setValueFromUiEditor( m_autoValue, notifyFieldChanged );
updateConnectedEditors();
}
}