kicad/gerbview/tools
Seth Hillbrand 8506cdf3ae Avoid numerical dereference of selections
The SELECTION is a std::set.  Numerical dereference of item n is O(n) as
the iterator is not random access.  Therefore, a for loop using
numerical dereference is O(n!) and quickly slows.

We avoid this by storing items to remove separately while iterating and
then removing the items after we complete.

Fixes: lp:1692081
* https://bugs.launchpad.net/kicad/+bug/1692081
2018-05-22 16:37:45 -07:00
..
gerbview_actions.cpp gerbview: Removed duplicate zoom-to-selection handler, made the toolbar button checkable 2018-04-12 11:52:08 +02:00
gerbview_actions.h gerbview: Removed duplicate zoom-to-selection handler, made the toolbar button checkable 2018-04-12 11:52:08 +02:00
gerbview_control.cpp gerbview: Removed duplicate zoom-to-selection handler, made the toolbar button checkable 2018-04-12 11:52:08 +02:00
gerbview_control.h gerbview: Removed duplicate zoom-to-selection handler, made the toolbar button checkable 2018-04-12 11:52:08 +02:00
selection_tool.cpp Avoid numerical dereference of selections 2018-05-22 16:37:45 -07:00
selection_tool.h Minor tweaks to GerbView for performance 2017-09-25 13:39:38 +02:00