Skip to content
  • Jeff King's avatar
    add oidset API · 29c2bd5f
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    This is similar to many of our uses of sha1-array, but it
    overcomes one limitation of a sha1-array: when you are
    de-duplicating a large input with relatively few unique
    entries, sha1-array uses 20 bytes per non-unique entry.
    Whereas this set will use memory linear in the number of
    unique entries (albeit a few more than 20 bytes due to
    hashmap overhead).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    29c2bd5f