Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
In NetworkTopology#InnerNode#remove, We can use childrenMap to get the parent node, no need to loop the children list. Then it is more efficient since in most cases deleting parent node doesn't happen.
Another nit in current code is:
String parent = n.getNetworkLocation(); String currentPath = getPath(this);
can be in closure of !isAncestor(n)