Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Huge cache using AssetEntity #131

Open
rignaneseleo opened this issue Jun 29, 2020 · 0 comments
Open

Huge cache using AssetEntity #131

rignaneseleo opened this issue Jun 29, 2020 · 0 comments

Comments

@rignaneseleo
Copy link
Contributor

rignaneseleo commented Jun 29, 2020

I'm using ImageItem to display a list of AssetEntity.
I noticed that on Android after scrolling many pictures (around 2000), the cache of the app itself is huge like 10-12 GB.

How is it possible? The size seems too big to be full of thumbnails, it looks like storing and moving al the pictures with no compression.

What is the logic behind:
ImageLruCache.setData(widget.entity, widget.size, data);
or
await widget.entity.thumbDataWithSize(widget.size, widget.size); ?

EDIT: After many tests, I can say that this problem occurs only on ANDROID 10.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant