[fpc-devel] Pre-zeroing in MM by background thread/process

Sven Barth pascaldragon at googlemail.com
Wed Oct 6 09:28:13 CEST 2010


Am 06.10.2010 05:57, schrieb Adem:
> I did a global search on trunk\compiler and found the following numbers:
>
> GetMem(): 212 hits
> FillChar(): 362 hits
>
[...]
> ---------------
> More hit data:
>
> fpc/trunk/packages/
> GetMem(): 1464 hits
> FillChar(): 608 hits
>
> trunk/lazarus/
> GetMem(): 522 hits
> FillChar(): 1366 hits
>

You might also search in rtl/ (especially objpas), because that contains 
the core of FPC's class system (and almost everything passes through 
that code some time).

You might also try a proof of concept implementation of your idea to 
demonstrate whether there really is a benefit (you can replace the 
default memory manager, so you should be able to test this without 
touching the current default heap manager).

Regards,
Sven



More information about the fpc-devel mailing list