[fpc-devel] Need heap manager -gv explanation

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 28 21:29:50 CEST 2014


On Mon, 28 Apr 2014 21:14:14 +0200
Petr Kristan <petr.kristan at epos.cz> wrote:

>[...]
> > Others would be better positioned for more detailed comparison among
> > various heap managers with regard to speed in different use cases, overall
> > memory requirements achieved by reuse of previously allocated memory, etc.
> Reuse of previously allocated memory - it really can be my problem.
> Here is about 200x call ReAllocMem increasing buffer from 4kB to 80MB.

Check if you are increasing buffers in constant steps.
Change the increment to exponentially.

 
> It looks like as buffer is increasing ReAllocMem is slowing.
> But I must verify this feeling.


Mattias



More information about the fpc-devel mailing list