Performance enhancements in fp loading, string cmp, etc.
Knocks about 1/3 off the first footprint load, and more than 1/2 off subsequent loads.
This commit is contained in:
@@ -107,12 +107,12 @@ void LIB_TREE_MODEL_ADAPTER::SetPreselectNode( LIB_ID const& aLibId, int aUnit )
|
||||
|
||||
|
||||
void LIB_TREE_MODEL_ADAPTER::DoAddLibrary( wxString const& aNodeName, wxString const& aDesc,
|
||||
std::vector<LIB_TREE_ITEM*> const& aCompList )
|
||||
std::vector<LIB_TREE_ITEM*> const& aItemList )
|
||||
{
|
||||
auto& lib_node = m_tree.AddLib( aNodeName, aDesc );
|
||||
|
||||
for( auto a: aCompList )
|
||||
lib_node.AddComp( a );
|
||||
for( auto item: aItemList )
|
||||
lib_node.AddItem( item );
|
||||
|
||||
lib_node.AssignIntrinsicRanks();
|
||||
m_tree.AssignIntrinsicRanks();
|
||||
|
||||
Reference in New Issue
Block a user