Mem manager multithreaded from 70seconds to 4seconds
check www.dellapasqua.com
please feel free to test it or join me to enlarge it with many functions from IPP Intel
Best regards
Roberto Della Pasqua
(does somebody wants join me to add other IPP functions to the RTL of Delphi/FPC?)
Roberto, the internals of the FPC memory manager are not Delphi compatible... Delphi has a much simpler (and more correct*) model, whereas FPC's model needs a size field to be filled in. (That's duplicate code...)
It is probably doable to translate, though. (For silly folks, I am not talking about actual code, but about some very low level architecture detail)
Note that the overall performance of FPC's manager in pure Pascal has been proven superior to most, but not all, pure Pascal Delphi ones.
Will have a look... And my daughter is coming to Italy tomorrow so be warned
*
The issue is Delphi determines by definition slot size on allocation. No further bookkeeping required.
Same - almost - goes for FPC, but that NEEDS to store the size of the allocation too...Why? No clue. Been complaining for neigh 20 years, I guess... But it is still fast.
Actually I know why: some other implementation details in the compiler rely on the implementation details of the memory manager......