• Max Kellermann's avatar
    tag/TagPool: optimize _dup_item() · a3afd517
    Max Kellermann authored
    When a reference counter is at its limit, don't allocate a new
    TagPoolSlot - that would result in many TagPoolSlot instances with
    ref==1.  This in turn would make the linked list very very large,
    which means quadratic runtime for many operations.
    a3afd517
TagPool.cxx 4 KB