My addons do a metric tonne of string concatenation, and I'm looking to optimize this as much as possible. I've read that each use of ".." causes a new string to be made, and each new string will need to be garbage collected. So ".." is bad if used everywhere.
My current thinking is to replace any string that is the product of more than a single ".." with a call to "strjoin()" with an empty string as the delimiter.
Is this correct? Or would "strjoin()" (is this a call to native C/C++?) end up being more expensive in the long run than generating all that extra work for Lua's memory management?