Florian Klaempfl wrote:
> Al Boldi wrote:
> > Marc Weustink wrote:
> >> Al Boldi wrote:
> >>> Marc Weustink wrote:
> >>>> I reread the thread, you stated something, some other users couldn't
> >>>> reproduce, so what do you expect for an answer ?
> >>>
> >>> Did you try it on your system?
> >>
> >> No, for several reasons.
> >>
> >> 1: I don't beleave in performance issues which are just a for loop
> >>
> >>> Also, I have another case involving TStringList which exhibits the
> >>> same problem.
> >>
> >> Examples, testcases and proof.
> >
> > for linux / fpc 2.0.2
> > compile with 'ppc386 FPCbenchBug.pas' (no switches)
> > then comment '// Add(s);'
> > compile again and report results
>
> Well, easy to explain I guess, if you comment the Add, s must be freed
> thus causing permanent memory allocation/deallocation. The Add prevents
> this being itself a cheap operation.
Thanks for clarifying this.
> With the improved heap manager of 2.0.4 this shouldn't happen anymore.
compiling with -gv seems to work around this problem.
What does -gv do, to correct the problem to some degree?
Thanks a lot!
--
Al
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives