Skip to content

Commit

Permalink
Slightly optimize _Optimize() method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Aug 10, 2024
1 parent cb2d2b4 commit 3c89697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dspatch/Circuit.h
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,9 @@ inline void Circuit::_Optimize()
componentsMap.reserve( _components.size() );

int scanPosition;
for ( int i = (int)_components.size() - 1; i >= 0; --i )
for ( auto component : _components )
{
_components[i]->ScanParallel( componentsMap, scanPosition );
component->ScanParallel( componentsMap, scanPosition );
}
for ( auto component : _components )
{
Expand Down

0 comments on commit 3c89697

Please sign in to comment.