Ref T464 Implement removal of one sequence from another in O(n),

assuming that elements in both sequences are in the same order in both.
This commit is contained in:
Mat Sutcliffe
2018-12-11 17:12:09 +00:00
committed by Klaus Basan
parent 40ae7174a7
commit 71de01065b
4 changed files with 47 additions and 4 deletions

View File

@@ -340,10 +340,7 @@ namespace BlackGui
else
{
ContainerType unselectedObjects(container());
for (const ObjectType &obj : selected)
{
unselectedObjects.remove(obj);
}
unselectedObjects.removeIfInSubset(selected);
this->updateContainerMaybeAsync(unselectedObjects);
delta = currentRows - unselectedObjects.size();
}