Poor performance, lack of performance acceptance test
🐛 Bug Report
Poor performance, lack of performance acceptance test
Can you provide more details?
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.
There is a limit on concurrent downloads at least. Please feel free to improve the performance
The following suggestions
-
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
-
Pending load requests can be cancelled when the view is not visible
-
Release the cache reference when the view is not visible, so that it can be released in time when there is insufficient memory
-
Memory caching can support configurable strategies, such as first in first out, setting the maximum number of caches, maximum memory usage, etc
-
Performance on desktop platforms such as windows should also be considered
Is this related to my post? @renefloor
https://github.com/Baseflow/flutter_cached_network_image/issues/730