On 27 Aug 2009, at 19:08, Mattias Gaertner wrote:

On Thu, 27 Aug 2009 18:57:58 +0200
Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:

Oh, now I see that the procedure was put below :) That it's quicker
with cmem is reasonably logical: FPC's heap manager is not very good
at reallocating memory.

What reallocating memory do you mean?

 s1:=IntToStr(Paramcount+12345);
 s2:=IntToStr(Paramcount+23456);
 for i:=1 to 500000000 do begin
   s:=s1;
   s:=s2;
 end;

I only change reference counters, don't I?

You're right.

I didn't see any timings for the command line app in your post
though.

That was in the very first post of this thread:

Maybe on another mailing list? Not here anyway.

Under my Linux machine the above program takes about 7.5 seconds.
Uncomment the cthreads unit: 7.5 seconds

Under OS X the above program takes on my mac book about 15 seconds.
Uncomment the cthreads unit: 21 seconds

On my MacBook it's 12 seconds with or without cthreads (12.1 with 2.5.1, 12.8 with 2.2.4).


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to