[fpc-devel] TLCLMemanager

Vincent Snijders vsnijders at quicknet.nl
Fri Sep 29 16:16:13 CEST 2006


Michael Van Canneyt schreef:
> 
> On Fri, 29 Sep 2006, Vincent Snijders wrote:
> 
>> Hi,
>>
>> The LCL contains the non-visual unit LCLMemManager:
>> http://svn.freepascal.org/svn/lazarus/trunk/lcl/lclmemmanager.pas
>> I would like to propose that you rename it and add it to the FCL.
>>
>> It contains some simple (base) clasess for pooling records and objects.
>>
>> For the binary trees benchmark at
>> http://shootout.alioth.debian.org/gp4/benchmark.php?test=binarytrees&lang=all
>> I wrote an alternative using the TLCLNonFreeMemManager. The alternative runs
>> in 40% of the time of the original and uses less memory.
> 
> If the lazarus people agree with this, I see no problem in doing so.

I think they will agree, but I will ask to make sure.

> What name would you suggest ? 

A name change because of the LCL in the name. But just TMemManager is too generic, IMHO.

What about TMemoryPool and TNonFreeMemoryPool?

Vincent



More information about the fpc-devel mailing list