flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Poor performance, lack of performance acceptance test

Open baneyue opened this issue 4 years ago • 5 comments

🐛 Bug Report

Poor performance, lack of performance acceptance test

baneyue avatar Dec 23 '21 01:12 baneyue

Can you provide more details?

Tonku avatar Dec 23 '21 11:12 Tonku

Memory and network usage soar when scrolling the list quickly; There is no limit on the number of concurrent loads, and there is no operation to cancel the load when the view leaves the visual area.

baneyue avatar Dec 25 '21 05:12 baneyue

There is a limit on concurrent downloads at least. Please feel free to improve the performance

renefloor avatar Dec 29 '21 08:12 renefloor

The following suggestions

  1. It is recommended to provide the loading thread numerical control system, and it is best to provide a configurable strategy to consume requests in the form of queues

  2. Pending load requests can be cancelled when the view is not visible

  3. Release the cache reference when the view is not visible, so that it can be released in time when there is insufficient memory

  4. Memory caching can support configurable strategies, such as first in first out, setting the maximum number of caches, maximum memory usage, etc

  5. Performance on desktop platforms such as windows should also be considered

baneyue avatar Dec 30 '21 04:12 baneyue

Is this related to my post? @renefloor

https://github.com/Baseflow/flutter_cached_network_image/issues/730

Sesa1988 avatar May 07 '22 10:05 Sesa1988