glide icon indicating copy to clipboard operation
glide copied to clipboard

Using ImageDecoder uses lots of memory on Android U (and maybe other Android versions)

Open falhassen opened this issue 1 year ago • 0 comments

I apologize for the lack of a proper write-up, but I observed a large increase in memory allocation when using ImageDecoder to decode images instead of Bitmap factory.

github won't let me attach hprofs, but I observed a 4X increase in memory allocation of com.bumptech.glide.load.engine.bitmap_recycle.LruArrayPool. I don't understand what the cause is yet.

This large increase in memory allocation can leads to ANRs and OOMs in client apps.

falhassen avatar Jan 25 '24 23:01 falhassen