G
Guest
Dear Bruce,
Can you please explain me how compiler would be able to optimize "+" for the
below code?
The reason why I did not want to use string concatenation was that I wanted
it to be a single string object in an effort to reduce memory consumption.
But if I use "+" does not that consume more memory due to string's inherent
property of
immutability and heavy cost of concatenations?
Please correct me if I am wrong...
Can you please explain me how compiler would be able to optimize "+" for the
below code?
The reason why I did not want to use string concatenation was that I wanted
it to be a single string object in an effort to reduce memory consumption.
But if I use "+" does not that consume more memory due to string's inherent
property of
immutability and heavy cost of concatenations?
Please correct me if I am wrong...