Wilfred Spiegelenburg created YUNIKORN-1245:
-----------------------------------------------

             Summary: Clean up cache GetNodesInfoMap
                 Key: YUNIKORN-1245
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1245
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: shim - kubernetes
            Reporter: Wilfred Spiegelenburg


Clean up of the GetNodesInfoMap and GetNodesInfoMapCopy calls in the scheduler 
cache in the k8shim.

We should only have behavioural option and that is the locked one. The name can 
be chosen as either one. It must always return the clone of the map, not sure 
about the cloning the content at that point.

Not cloning each of the nodes at that point could give us a performance gain. 
All callers either filter or convert from a map to a slice. We can delay 
cloning the nodes itself to that point. This could save cloning a large number 
of objects as we never return them.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to