• Oleg Shaldybin's avatar
    Minor selectHost optimization in scheduler · 3a36dfb3
    Oleg Shaldybin authored
    Instead of sorting hosts by score, find max score and choose one of
    the hosts with max score directly. Saves a little time on sorting and
    avoids extra copying of HostPriorityList entries.
    
    Test had to be updated as one of the test cases relied on having a
    stable order from pre-sorting.
    3a36dfb3
Name
Last commit
Last update
..
algorithm Loading commit data...
algorithmprovider Loading commit data...
api Loading commit data...
factory Loading commit data...
metrics Loading commit data...
extender.go Loading commit data...
extender_test.go Loading commit data...
generic_scheduler.go Loading commit data...
generic_scheduler_test.go Loading commit data...
modeler.go Loading commit data...
modeler_test.go Loading commit data...
scheduler.go Loading commit data...
scheduler_test.go Loading commit data...