> > > Sl:=TStringList.Create;
> > > for i := 1 to 10000000 do
> > >  begin
> > >  DoSomestuff;
> > >  SL.Add(SomeString);
> > >  DoOtherStuff;
> > >  SL.Add(SomeOtherString);
> > >  end;
> > > Result:=SL.Concatenate; // This can be optimized to 1 getmem call.
> > >
> > > Michael.
> >
> >
> > I suppose this is sort of like SetTextBuff for stringlist :)
> >
> > And how about if you don't have any line delimiter? i.e. a string buffer
with no
> > CRLF or LF.. does the TStrings type allow to disable the line delimiter?
>
> That would be the difference between 'Text' and 'Concatenate':
> Text adds CR/LF between the strings, 'Concatenate' would not.
>
> Michael.
>

Oh! it has been a while since I looked into the Tstrings source code.. so you're
saying that a tstrings already *IS* buffered and all you would have to do is
implement concatenate function.. because buffering already exists.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to