9 Feb
2005
9 Feb
'05
4:25 a.m.
On Tue, 2005-02-08 at 15:35, bulia byak wrote:
This seems to be true. I just tested Sodipodi and it also did not decrease its memory usage after all 1000+ stamped shapes were deleted.
Well, another factor there is that for many major structs in Sodipodi, it has private memory pools implemented on top of the system allocator. Memory in those pools is never released even with free(), so Sodipodi cannot shrink, with or without fragmentation.
I tore all that stuff out after the fork.
It can be a legitimate optimization if the system malloc is really inefficient and memory allocation is a bottleneck, but I am not sure that was ever measured to be the case.
-mental