BLO: shrink old-new-map when it is cleared
This was accidentally changed in {rB57613630c7faa41aa20ae9}. Not shrinking the map can degrade performance.
This commit is contained in:
parent
bf1791ba92
commit
a55c356a1c
|
@ -301,7 +301,7 @@ static void oldnewmap_clear(OldNewMap *onm)
|
|||
MEM_freeN(new_addr.newp);
|
||||
}
|
||||
}
|
||||
onm->map.clear();
|
||||
onm->map.clear_and_shrink();
|
||||
}
|
||||
|
||||
static void oldnewmap_free(OldNewMap *onm)
|
||||
|
|
Loading…
Reference in New Issue