Wilfred Spiegelenburg created YUNIKORN-2638:
-----------------------------------------------
Summary: Simplify finalizeNodes and finalizePods
Key: YUNIKORN-2638
URL: https://issues.apache.org/jira/browse/YUNIKORN-2638
Project: Apache YuniKorn
Issue Type: Improvement
Components: shim - kubernetes
Reporter: Wilfred Spiegelenburg
In finalizeNodes and finalizePods a map is created to store the newly retrieved
pods and nodes. The map is only used as a reference and the pod and node
objects themselves are not used.
Instead of storing the objects the maps could use a boolean value to store.
This also simplifies the check later for the existence of the node or pod to
just a single map lookup.
We should also set the size of the map, length of the nodes or pod list
retrieved, to prevent any re-allocation during the map filling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]