pcbnew: avoid unnecessary copy in RN_NET::processPads()

Saves >30% run time on ratsnest rebuild for high-fanout nets.
This commit is contained in:
Andrew Zonenberg 2016-02-01 18:13:30 -05:00 committed by Chris Pavlina
parent ce7ce77d80
commit 41223a81d3
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ void RN_NET::processPads()
m_links.RemoveConnection( edge );
LSET layers = pad->GetLayerSet();
RN_LINKS::RN_NODE_SET candidates = m_links.GetNodes();
const RN_LINKS::RN_NODE_SET& candidates = m_links.GetNodes();
RN_LINKS::RN_NODE_SET::iterator point, pointEnd;
point = candidates.begin();