• Jan Safranek's avatar
    volume controller: Speed up binding by not sorting volumes · c7da3abd
    Jan Safranek authored
    The binder sorts all available volumes first, then it filters out volumes
    that cannot be bound by processing each volume in a loop and then finds
    the smallest matching volume by binary search.
    
    So, if we process every available volume in a loop, we can also remember the
    smallest matching one and save us potentially long sorting (and quick binary
    search).
    c7da3abd
index_test.go 17.6 KB