Does Stringbuild perform the same function as StringBuilder does in .NET?

Startbeitrag von HairyHaggis.pcs.crosspost am 08.06.2009 08:06

Hello all,

I am performing string manipulations many times per second, and want this to be as fast as possible. I am currently using the following syntax:

Str = Str + newStr

I know that in .NET a much better way of doing this would be to use the StringBuilder() command, and wondered if the StringBuild function of WinDev offered the same performance gain.

Many thanks.

Message forwarded from pcsoft.us.windev

Antworten:

HH

Str += newStr can be used in place of Str = Str + newStr to concatinate 2 strings.

StringBuild works fine for inserting single or mutiple values into a string based on variables.

Is it as fast/faster than StringBuilder() ? - only way to find out is to test it.

Regards

DerekT

von DerekT - am 08.06.2009 08:41
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.