-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does downloadonly works ? #4229
Comments
After looking into the doc and more precisely the caching part I found this for my first question, but I'm still not sure about what is the behaviour of Glide for the question 2
If I understand correctly, even if I use For example: If I load 20 images (from 1 to 20) and my memory cache can only contains 15, only the 15 most used will be in memory cache whereas the the disk cache will have the remaining 5 and will retrieve one of these if I load it into one of my component. Is that how Glide manage memory ? |
This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions. |
To answer question #2, ALL will use the DATA cache if the original image is present, but it will also cache the fully decoded/transformed image as well. Both the original and the transformed copy will end u in cache. These caching strategies apply only to the on disk cache, not the in memory one. The in memory cache only caches fully decoded/transformed results. The closest disk cache analogue is RESOURCE |
Okay, thank you for your answer, so there is no way to force an image to be in memory cache ? The first time the thumb are displayed there is a blank when changing to another (I've used log and it was because the image was either in |
This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions. |
Glide Version:
Integration libraries:
Device/Android Version:
Galaxy S3 Neo, Nexus4 and Galaxy S7 Edge
Issue details / Repro steps / Use case background:
I'm trying out Glide and I'm still lacking some knowledge about this amazing library.
Here is the context, I've got an image sprite which is appended by number for each minute of the video. I'd like to preload 3 minutes of the video using Glide with the code below and then use that same image to make transformation.
Question 1 : if I use the for-loop below, will Glide download the 3 images everytime or will it check before downloading if it got the image in cache ? and when I'll use Glide with the same url later will it take it from cache or re-download the whole sprite ?
Question 2: Does using
DiskCacheStrategy.DATA
on the image to download it and then usingDiskCacheStrategy.ALL
on the override image will make Glide download the image or will it use the one in cache from before ?Glide load line /
GlideModule
(if any) / list Adapter code (if any):The text was updated successfully, but these errors were encountered: