[fpc-devel] Forwarded message about FPC statusy

Jy V jyv110 at gmail.com
Tue Dec 25 14:53:14 CET 2012


> Although FPC heap manager is good, but custom pool memory allocation will
> be much faster, since it will be very simple:
>
>  Result:=CurPoolPtr;
>  Inc(CurPoolPtr, BlockSize);
>  if CurPoolPtr > MaxPoolPtr then AllocNewZeroFilledPool();
>
> It is not needed to handle memory releases during object destruction.
> Since all nodes are available during whole compiling phase (parsing, code
> generation, etc) and released only at the end of a phase, it is possible
> just to release whole pool blocks at the end of a phase.
>
> Such pooled base class for compiler nodes should inrease performanse a lot.
>

I do agree,
you should consider his position.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20121225/862fb8bc/attachment.html>


More information about the fpc-devel mailing list