[ https://issues.apache.org/jira/browse/YUNIKORN-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Lin reassigned YUNIKORN-2638: --------------------------------- Assignee: Ted Lin > 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 > Assignee: Ted Lin > Priority: Minor > > 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: issues-unsubscr...@yunikorn.apache.org For additional commands, e-mail: issues-h...@yunikorn.apache.org