Unusual Ways of Boosting Up App Performance. Strings

added by Paul Wheeler
7/18/2014 1:28:45 PM

2 Kicks, 172 Views

String is an immutable type, meaning that the contents of a string object cannot be changed. When you change string contents, a new string object is created. This fact is the main source of performance issues caused by strings. The more you change string contents, the more memory is allocated. This, in turn, triggers garbage collections that impact app performance. A relatively simple solution is to optimize your code so as to minimize the creation of new string objects.


0 comments