IMPORTANT NOTES ABOUT PERFORMANCE: http://jsperf.com/string-concatenation-looped http://jsperf.com/adding-strings-to-an-array http://jsperf.com/string-concatenation-versus-array-operations-with-join
It is clearly inefficient to use a StringBuilder or LinkedList to build a string when you have a small set of string portions. StringBuilder will really show it's benefit likely somewhere above 1000 items.
/// These methods can only efficiently be added if not using a single array. insert(index: number, value: string, count: number = 1): StringBuilder {
}
remove(startIndex:number, length:number): StringBuilder {
} /
Generated using TypeDoc
IMPORTANT NOTES ABOUT PERFORMANCE: http://jsperf.com/string-concatenation-looped http://jsperf.com/adding-strings-to-an-array http://jsperf.com/string-concatenation-versus-array-operations-with-join
It is clearly inefficient to use a StringBuilder or LinkedList to build a string when you have a small set of string portions. StringBuilder will really show it's benefit likely somewhere above 1000 items.