• Max Kellermann's avatar
    tag: try not to reallocate tag.items in every add() call · 1aa34573
    Max Kellermann authored
    If many tag_items are added at once while the tag cache is being
    loaded, manage these items in a static fixed list, instead of
    reallocating the list with every newly created item.  This reduces
    heap fragmentation.
    
    Massif results again:
    
     mk before:  total 12,837,632; useful 10,626,383; extra 2,211,249
     mk now:     total 12,736,720; useful 10,626,383; extra 2,110,337
    
    The "useful" value is the same since this patch only changes the way
    we allocate the same amount of memory, but heap fragmentation was
    reduced by 5%.
    1aa34573
Name
Last commit
Last update
bs Loading commit data...
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
build.mk Loading commit data...
configure.ac Loading commit data...