roString has the mutator
AppendString(), which i assumed is there for performance reasons, to allow building a string much faster by repeatedly appending text at the end, through expanding the original buffer instead of creating new object through concatenation every time. Or at least so i know from other languages. But that does not seem to be the case:
BrightScript Debugger> ti = createObject("roTimespan")
BrightScript Debugger> s = string(1000, "x")
BrightScript Debugger> ss = "1"+"2": ti.mark(): for k=1 to 1000: ss=ss+s: end for: ? ti.totalMilliseconds()
14290
BrightScript Debugger> ss = "1"+"2": ti.mark(): for k=1 to 1000: ss.appendString(s, len(s)): end for: ? ti.totalMilliseconds()
14461
So if anything, appendString() is marginally slower (i suspect because of price of method lookup and two function calls). My take out will be not to use it then. Any insight what's the purpose of the method if not speed?