[
https://issues.apache.org/jira/browse/YUNIKORN-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manikandan R resolved YUNIKORN-2134.
------------------------------------
Resolution: Fixed
> 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
> Priority: Major
> Labels: pull-request-available
> 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]