FFImageLoading icon indicating copy to clipboard operation
FFImageLoading copied to clipboard

Memory Management for FFImageLoading

Open aliusman opened this issue 3 years ago • 0 comments

I tried FFImageLoading, Facebook's Fresco and Glide.

I put all of them in test in a RecyclerView with 100 Gifs from Giphy API. Looped through 10 times to clear the adapter and reload.

The results were something like the following after the 10th loop

FFImageLoading - RecyclerView scrolling is extremely laggy and it stutter a lot (gifs are loading slowly) Fresco - RecyclerView scrolling is smooth (gifs are loading quick) Glide - RecyclerView scrolling is smooth as (gifs are loading quicker)

I went through all the possible ways described here https://github.com/luberda-molinet/FFImageLoading/wiki/Advanced-Usage#clear-cache-and-memory-considerations but no improvements at all. Even ImageService.Instance.SetPauseWork(true); does not make any difference and await ImageService.Instance.InvalidateDiskCacheAsync(); seems to have no impact.

Any idea what could be done better for memory management?

aliusman avatar Jul 09 '21 03:07 aliusman