• Kevin Atkinson's avatar
    Check for multiple pinned blocks in a single pass. · efeb7898
    Kevin Atkinson authored
    Provide a new method, Pinner.CheckIfPinned(), which will check if
    any of the arguments are pinned.  Previously IsPinned would need to be
    called once for each block.  The new method will speed up the checking
    of multiple pinned blocks from O(p*n) to O(p) (where p is the number
    of pinned blocks and n is the number of blocks to be check)
    
    Use the new method in "block rm".
    
    License: MIT
    Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
    efeb7898
block.go 7.66 KB