Bajji
Bajji

Reputation: 2383

Benefits of reducing android app's memory consumption

I am trying to understand the benefits of memory consumption by an android application. One direct affect of consuming more memory is that the app crashes more often with OutOfMemoryError. But if my app rarely fails with OutOfMemoryError, is there a benefit in spending time on trying to reduce the memory consumption further ?

Upvotes: 0

Views: 84

Answers (1)

Sdghasemi
Sdghasemi

Reputation: 5598

Avoiding leaks is not as easy as it seems. For example when user changes a configuration resulting the activity to get recreated, your memory consumption becomes almost 2 times due to the leaking activity if of course you have leaks.

The reason you should keep the ram usage as low as you can is about the free part of heap you can get which of course will reduce battery consumption and you can perform tasks on a larger scale. Lets assume you need to crop an image that user requested; this will usually get done by splitting the job into separate chunks and do it in a background thread while showing user a progress. In this example you can bite a larger size of the ram per each chunk and get the job done faster resulting in a happier end-user.

There are plenty other reasons as so to keep your ram usage at a lower level often ends up with more satisfied users.

Upvotes: 1

Related Questions