Hi fellow plugin dudes (and game devs),
Bit of Friday night code optimization chat.
Now on my blog, around three years ago I wrote somthing that goes a little like:
"So I’ve always done it with the plus (+) operator turns out using a prefix $ is much more efficient in terms of memory usage."
Disclaimer: honesty I can't actually remember posting this.
So I just tried it (as I still just use the plus operator) as below:
But I just get an error message. " ; expected "
I think, the problem is that this was wrongfully filed under Java (which I'm trying to compile it as), when in fact it may very well be C# code.
First off, am I right that this is C#?
Second, and more importantly, what do you think is the most optimal way of string concatination? Using the plus operator or using the String classes concat operator?
Answers about it being negligable are not accepted.
paulevs I'm interested in knowing your thoughts on this