On 15/12/18 19:37, Ben Grasset wrote:
Should this really be surprising at all though? To me it seems obvious why that would be the case. Delphi the compiler (not the IDE) is not written in Pascal. It's written in a combination of C and C++. Thus, I would imagine that Delphi's *default* internal memory management system is more along the lines of what is done in FPC's cmem unit, which is well known to be objectively faster than FPC's default memory manager

As Martok wrote, Delphi's memory manager is FastMM. That one is written in assembler, afaik. Additionally, cmem is mainly faster (on Unix platforms) if you reallocate many (large) memory blocks, which is related to what Florian talked about earlier.

as FPC's default memory manager simply does not aim to be fast but rather to use the smallest amount of memory possible.

That is incorrect.


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to