[fpc-pascal]Memory Usage

Florian Klaempfl Florian.Klaempfl at gmx.de
Mon May 12 13:04:24 CEST 2003


Marco van de Voort wrote:
>>I'd like to know why one of my programs pircsrv written in FPC uses up so
>>much memory. 107Mb of virtual memory (so it seems) and 7Mb of data. Here
>>is the top stats...
> 
> 
> Two possibilities:
> - memory leaks.  Proceed as Peter already explained.
> - heap fragmentation. Use unit cmem, or if you use a lot of small same
> 	size reallocations, pool them and reuse (often even faster)

The FPC heap manager does pooling.





More information about the fpc-pascal mailing list