By viniciusfbm
via guchex.com
Published: Oct 09 2012 / 15:11
While most developers will agree that optimization comes after implementation, there are a number of common mistakes that can cause needless inefficiency and should really be caught before they make it to the code-base. One of these that I see fairly regularly in Java is the use of a String when a StringBuilder should be used instead.
Comments
Dinuka Arseculeratne replied ago:
I was just wondering, with the escape analysis and all the changes in the VM, does string concatenation really matter any more? because they are now created on the stack and disposed of after the method execution isnt it? Please correct me if i am wrong. Good write up nevertheless. Thx for sharing.
Voters For This Link (4)
Voters Against This Link (0)