[fpc-pascal] performance when resizing a dynamic array

Adriaan van Os fpc at microbizz.nl
Thu Dec 8 08:45:52 CET 2016

David Emerson wrote:
> Graeme Geldenhuys wrote:
>> Martin Schreiber wrote:
>>> That happens with every reallocmem() with FPC memory manager so using a
>>> getmem() block instead of a dynamic array has no advantage in this
>> Maybe a good old linked list implementation is the best performer then.
>> Back to the Pascal of the 80's and 90's. :)

Note that, when using trees and linked lists, using a pooled memory manager manager may speed up 
things. Something like the pooledmm in the FCL.


Adriaan van Os

More information about the fpc-pascal mailing list