glide
glide copied to clipboard
Using ImageDecoder uses lots of memory on Android U (and maybe other Android versions)
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.