I understand the difference between String
and StringBuilder
(StringBuilder
being mutable) but is there a large performance difference
Further to the previous answers, the first thing I always do when thinking of issues like this is to create a small test application. Inside this app, perform some timing test for both scenarios and see for yourself which is quicker.
IMHO, appending 500+ string entries should definitely use StringBuilder.