Manikandan R created YUNIKORN-2134:
--------------------------------------

             Summary: Use nil resource instead of NewResource()
                 Key: YUNIKORN-2134
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2134
             Project: Apache YuniKorn
          Issue Type: Sub-task
          Components: core - scheduler
            Reporter: Manikandan R
            Assignee: Manikandan R
             Fix For: 1.4.0


UGM module use resources.NewResource() to initialize resourceUsage and 
maxResources variables where ever necessary. All follow up depending on these 
variables need to compare with resources.NewResource() for empty check. It is 
expensive and can be avoided initializing it to nil.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to