You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KingfisherManager.retrieveImage() hits disk even when options are set to async
What
KingfisherManager.retrieveImage() hits disk on calling thread even when options are set to async when checking disk cache for presence of image. The issue with this is that KFImage() and image.kf.setImage() must be used on Main thread. This contributes to dropped frames. In UIKit, using KingfisherManager.retrieveImage manually (on a secondary thread), and then setting the image is simple workaround, but in SwiftUI it becomes more cumbersome.
Reproduce
v7.12
Use KFImage or kf.setImage in a large scrolling list. Observe hitches due to disk access on main
thread.
Other Comment
The text was updated successfully, but these errors were encountered:
jotai-coder
changed the title
KingfisherManager.retrieveImage() hits disk synchronously even when opted into all async options
KingfisherManager.retrieveImage() hits disk on main thread even when opted into all async options
Nov 21, 2024
Issue Description
KingfisherManager.retrieveImage() hits disk even when options are set to async
What
KingfisherManager.retrieveImage() hits disk on calling thread even when options are set to async when checking disk cache for presence of image. The issue with this is that KFImage() and image.kf.setImage() must be used on Main thread. This contributes to dropped frames. In UIKit, using KingfisherManager.retrieveImage manually (on a secondary thread), and then setting the image is simple workaround, but in SwiftUI it becomes more cumbersome.
Reproduce
v7.12
Use KFImage or kf.setImage in a large scrolling list. Observe hitches due to disk access on main
thread.
Other Comment
The text was updated successfully, but these errors were encountered: