Performance.

Saves about 30% of the time to open the sim model
dialog.  Pretty much all the remaining time is in PEGTL,
and that's even with short-circuiting it for most param
values.
This commit is contained in:
Jeff Young
2024-08-30 22:49:29 +01:00
parent ab1c179fa3
commit c22eac2fbf
15 changed files with 75 additions and 76 deletions
+3 -1
View File
@@ -175,8 +175,10 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
break;
default:
for( const SIM_MODEL::PARAM& param : m_model.GetParams() )
for( int ii = 0; ii < m_model.GetParamCount(); ++ii )
{
const SIM_MODEL::PARAM& param = m_model.GetParam( ii );
if( ac != "" && ( param.Matches( "ac" ) || param.Matches( "ph" ) ) )
continue;