I just started using memory analysis tool (MAT) to find out if I can optimize my Android application. It displays weather data obtained from XML files from the Internet. I see a large number of repeated lines due to the obvious repetition of certain weather lines ("clear", "partially cloudy, etc.).
What would be the most efficient way to reduce memory overhead with the same lines? List the most common lines and match them during an XML parsing operation?
thanks.
source share