schedulers/balance_leader: could we use binarysearch
instead of storeIndexMap in candidateStores
#5187
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement Task
schedulers/balance_leader: could we use
binarysearch
instead of store the index instoreIndexMap
forcandidateStores
since the stores is already sorted:pd/server/schedulers/balance_leader.go
Lines 250 to 255 in c8775b6
The text was updated successfully, but these errors were encountered: