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
Previously you have to wrap SDImageFrame array into temp image object for encoding, this cause wrap/unwrap performance cost (even bad on macOS because it implicit triggers temp GIF encoding). Now you can directly pass it into new encodedDataWithFrames: APIs.
Now, the encode process does not block IO queue and query disk cache faster. Previously SDWebImageWaitStoreCache is useless when you use transformer or cache serializer. Now you MUST pass this if you want to query disk cache inside completionBlock.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Features
Encoder
SDImageFrame
array into temp image object for encoding, this cause wrap/unwrap performance cost (even bad on macOS because it implicit triggers temp GIF encoding). Now you can directly pass it into newencodedDataWithFrames:
APIs.Decoder
Cache
SDWebImageContextImageEncodeOptions
to pass encode options like compression quality to SDImageCache storeImage API. Seperate the SDImageCache encode queue and IO queue to match waitStoreCache behavior #3466SDWebImageWaitStoreCache
is useless when you use transformer or cache serializer. Now you MUST pass this if you want to query disk cache inside completionBlock.Manager/Cache/Loader
callbackQueue
andSDCallbackQueue
wrapper for advanced user to control which queue to callback #3465 AVMetadataItemValueRequest & SDWebImageManager.load hang #3457.context[.callbackQueue] = .current
SDWebImageContextImageEncodeOptions
to pass encode options like compression quality to SDImageCache storeImage API. Seperate the SDImageCache encode queue and IO queue to match waitStoreCache behavior #3466This discussion was created from the release 5.15.0 - Performance Enhancement.
Beta Was this translation helpful? Give feedback.
All reactions