You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Yun Sun (Jira)" <ji...@apache.org> on 2024/05/21 20:53:00 UTC
[jira] (YUNIKORN-2638) Simplify finalizeNodes and finalizePods
[ https://issues.apache.org/jira/browse/YUNIKORN-2638 ]
Yun Sun deleted comment on YUNIKORN-2638:
-----------------------------------
was (Author: JIRAUSER304894):
Can I work on it?
> 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-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org