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:
+10
-9
@@ -38,9 +38,8 @@
|
||||
static void not_implemented( PLUGIN* aPlugin, const char* aCaller )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format( FMT_UNIMPLEMENTED,
|
||||
aPlugin->PluginName().GetData(),
|
||||
wxString::FromUTF8( aCaller ).GetData() )
|
||||
);
|
||||
aPlugin->PluginName().GetData(),
|
||||
wxString::FromUTF8( aCaller ).GetData() ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -73,9 +72,9 @@ void PLUGIN::PrefetchLib( const wxString& aLibraryPath, const PROPERTIES* aPrope
|
||||
}
|
||||
|
||||
|
||||
MODULE* PLUGIN::LoadEnumeratedFootprint( const wxString& aLibraryPath,
|
||||
const wxString& aFootprintName,
|
||||
const PROPERTIES* aProperties )
|
||||
const MODULE* PLUGIN::GetEnumeratedFootprint( const wxString& aLibraryPath,
|
||||
const wxString& aFootprintName,
|
||||
const PROPERTIES* aProperties )
|
||||
{
|
||||
// default implementation
|
||||
return FootprintLoad( aLibraryPath, aFootprintName, aProperties );
|
||||
@@ -83,7 +82,7 @@ MODULE* PLUGIN::LoadEnumeratedFootprint( const wxString& aLibraryPath,
|
||||
|
||||
|
||||
MODULE* PLUGIN::FootprintLoad( const wxString& aLibraryPath, const wxString& aFootprintName,
|
||||
const PROPERTIES* aProperties )
|
||||
const PROPERTIES* aProperties )
|
||||
{
|
||||
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
|
||||
not_implemented( this, __FUNCTION__ );
|
||||
@@ -91,14 +90,16 @@ MODULE* PLUGIN::FootprintLoad( const wxString& aLibraryPath, const wxString& aFo
|
||||
}
|
||||
|
||||
|
||||
void PLUGIN::FootprintSave( const wxString& aLibraryPath, const MODULE* aFootprint, const PROPERTIES* aProperties )
|
||||
void PLUGIN::FootprintSave( const wxString& aLibraryPath, const MODULE* aFootprint,
|
||||
const PROPERTIES* aProperties )
|
||||
{
|
||||
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
|
||||
not_implemented( this, __FUNCTION__ );
|
||||
}
|
||||
|
||||
|
||||
void PLUGIN::FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName, const PROPERTIES* aProperties )
|
||||
void PLUGIN::FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName,
|
||||
const PROPERTIES* aProperties )
|
||||
{
|
||||
// not pure virtual so that plugins only have to implement subset of the PLUGIN interface.
|
||||
not_implemented( this, __FUNCTION__ );
|
||||
|
||||
Reference in New Issue
Block a user