• A
    objectComputeSize(): estimate collections sampling N elements. · 89dec692
    antirez 提交于
    For most tasks, we need the memory estimation to be O(1) by default.
    This commit also implements an initial MEMORY command.
    Note that objectComputeSize() takes the number of samples to check as
    argument, so MEMORY should be able to get the sample size as option
    to make precision VS CPU tradeoff tunable.
    
    Related to: PR #3223.
    89dec692
object.c 28.8 KB