Option 1:
String newStr = someStr + 3 + "]";
Option 2:
String newStr = someStr + "3" + "]";
Which option is better with regards to performance, memory and general practice?
What are some recommended tools/ways I can use to measure memory usage of my code and its performance (besides measuring the start time and the end time and calculate the difference)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…