• A
    SPOP: reimplemented for speed and better distribution. · 9feee428
    antirez 提交于
    The old version of SPOP with "count" argument used an API call of dict.c
    which was actually designed for a different goal, and was not capable of
    good distribution. We follow a different three-cases approach optimized
    for different ratiion between sets and requested number of elements.
    
    The implementation is simpler and allowed the removal of a large amount
    of code.
    9feee428
intset.h 2.2 KB