psantacl commented on code in PR #935:
URL: https://github.com/apache/yunikorn-core/pull/935#discussion_r1729201049


##########
pkg/scheduler/objects/sorters.go:
##########
@@ -65,8 +65,10 @@ func sortQueuesByPriorityAndFairness(queues []*Queue) {
                if lPriority < rPriority {
                        return false
                }
-               comp := 
resources.CompUsageRatioSeparately(l.GetAllocatedResource(), 
l.GetGuaranteedResource(),
-                       r.GetAllocatedResource(), r.GetGuaranteedResource())
+

Review Comment:
   pushed.  This should compute GetFairMaxResource O(n) times instead of 
NLog(N).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to