• antirez's avatar
    LRU: cache SDS strings in the eviction pool. · e64bf05f
    antirez authored
    To destroy and recreate the pool[].key element is slow, so we allocate
    in pool[].cached SDS strings that can account up to 255 chars keys and
    try to reuse them. This provides a solid 20% performance improvement
    in real world workload alike benchmarks.
    e64bf05f
evict.c 15.7 KB