…NSCache does this by itself
…ever be called due to is always being 0
…pp (good practice)
- queryDiskCacheForKey:done: now always invokes the callback in the main thread - removed the now redundant main thread dispatch in the image manager class
- callbacks could be released between the callback existence if check and invocation - could be nilled out in a background thread call to done, while being prepared for invocation on the main thread - now making sure done is always performed on the main thread - also added some related threading fixes and optimizations
- made sure this is true even if the downloader is used on its own - SDWebImageManager doesn't need to perform a dispatch to the main thread any longer
Even if using the downloader directly without SDWebImageManager.
- none, disk and memory - can still be used as a bool (if true there was a cache hit)
This preserves the image quality and retains some image attributes, such as the alpha channel (for non-jpeg images).
Tests on large images indicate an up to 4x improvement with regard to the time spent in decodedImageWithImage:.
Fix documentation directive