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
Then scoroll through from top to bottom.
I think this produces 10 cached images that are applied blur filter.
However there are 14 images in com.onevcat.Kingfisher.ImageCache.default directory.
For most part it is as expected, expect that the blurred images are not cached (and I will fix it later)
Here is the reason:
The original images are cached due to the prefetcher. You may not notice that we have a prefetch support in the demo, which will try to get original images (and cache them).
The first four blurred images are downloaded and processed, then cached as normal.
For the later blurred images, there is an optimization in Kingfisher to check whether an original image is already in cache. If so, that image will not be downloaded again but only be processed with input cache.
And I forgot to store the processed images in cache from step 3!
What
I'm testing ImageProcessor behavior with 84b582e .
And found sometimes unnecessary image processing applied.
Reproduce
I modified cell configuration method on
Kingfisher-Demo/ViewController.swift
as follows:Then scoroll through from top to bottom.
I think this produces 10 cached images that are applied blur filter.
However there are 14 images in
com.onevcat.Kingfisher.ImageCache.default
directory.Above includes:
Demo app shows all images blurred.
I wrote log output code in BlurImageProcessor.process as follows:
Then scoroll through from top to bottom.
Console output is like this:
Excepected results in this situation are:
The text was updated successfully, but these errors were encountered: