0026139: AIS_InteractiveContext::Display performance regression

NCollection_Sequence in SelectMgr_SensitiveEntitySet was replaced by indexed data map
This commit is contained in:
vpa
2015-05-07 18:39:36 +03:00
committed by abv
parent d4aaad5b82
commit ec81011f5b
5 changed files with 134 additions and 59 deletions

View File

@@ -51,7 +51,10 @@ void SelectMgr_SelectableObjectSet::Remove (const Handle(SelectMgr_SelectableObj
if (anIndex != 0)
{
Swap (anIndex - 1, Size() - 1);
if (anIndex != Size())
{
Swap (anIndex - 1, Size() - 1);
}
myObjects.RemoveLast();