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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user