How much performance hit I will inure if I use following:
int i=5;
label1.Text = i + "";
instead of:
int i=5;
label1.Text = i.ToString();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While there may be a difference in performance between the two, ask yourself this question: will this be significant for the performance of the application?
My guess is that it will not be significant.
Measure it and fix it if it is.
Architecture will usually affect performance. Minor language optimization may affect performance, but in general your time is better spend attending to bottlenecks identified through actual measurement.