[fpc-devel] x86_64 Optimizer Overhaul
Ben Grasset
operator97 at gmail.com
Sat Dec 15 19:37:21 CET 2018
On Sat, Dec 15, 2018 at 1:01 PM Martok <listbox at martoks-place.de> wrote:
> I just tested something, and I'm a surprised by how big the difference is.
>
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 FPC's default
memory manager simply does not aim to be fast but rather to use the
smallest amount of memory possible.
It seems to me like a clear cut issue of just deciding what the biggest
priority is. If anything, it might make sense to implement a
secondary-default memory manager for FPC that does not necessarily call C
functions like malloc but *does* aim specifically for speed, and that could
perhaps be made available either via a command-line flag or perhaps just by
using a unit the same way cmem is.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181215/73cbe28b/attachment.html>
More information about the fpc-devel
mailing list