Noticeable delay when loading urls that have already been cached - using a hack to work around it.
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
There is a noticeable delay when loading a url that has already been cached. In the wiki it says:
> By default, Glide checks multiple layers of caches before starting a new request for an image:
>
> Active resources - Is this image displayed in another View right now?
> Memory cache - Was this image recently loaded and still in memory?
> Resource - Has this image been decoded, transformed, and written to the disk cache before?
> Data - Was the data this image was obtained from written to the disk cache before?
From my testing the image loads instantly if it is in Active resources but has a noticeable delay when loaded from Memory cache. This is especially noticeable if you have one image view that you change the URL on. The delay is so bad that I had to put several hidden ImageViews to hold the images I am about to show so they are in Active resources.
Can this be fixed in some way so that there isn't a need for this type of hack?
**4.12.0**:
Contributor guide
Assessment
This issue has not been assessed yet.