[fpc-devel] Re: Compiler bottlenecks
sergei_gorelkin at mail.ru
Thu Jul 15 15:36:39 CEST 2010
Michael Schnell wrote:
> I did not take a look at FPC's memory manager. Maybe someone might want
> to do some profiling ....
I did the extensive profiling when working on fcl-xml package. For a single-threaded application,
the following is true:
- FastMM is somewhat slower than FPC's memory manager, but the difference is small.
- Given the amount of source code in FPC and FastMM, FPC is clearly a winner :)
- A lot depends on how you deal with memory. It is much faster to allocate only than to allocate
and release in turn.
- Given the above, a single forgotten 'const' modifier at function argument of type string may ruin
your application performance irrespective of memory manager used.
More information about the fpc-devel