Register now or log in to join your professional community.
Working on a project have too much garbage code harassing me to resolve issues and add new functionality.
Avoid having garbage collector work too much as it has negative impact on performance.-When using loops. If your are iterating array. save the array length in an integer. and then use this integer in a loop. It boosts the performance.-Refer this link for examples . http://www.devahead.com/blog/2011/12/coding-for-performance-and-avoiding-garbage-collection-in-android/