-
Notifications
You must be signed in to change notification settings - Fork 677
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
Custom Fetcher Memory Loading is really slow #2770
Comments
This sounds like it could be a case where the image isn't being returned from the memory cache. What do the extra debug logs say?
This actually means the image was returned from a memory source i.e. your fetcher as it returns |
I've added |
It sounds like your request is missing the memory cache and is loading via your custom fetcher which takes 2-3 seconds, though it's not possible to say without a way to repro locally. It's possible it could be this, but there would be a log indicating why the memory cache result was ignored in that case. |
Yes the If you scroll down, and up again you can see that requests are loaded again and the fetcher is called. |
@colinrtwhite have you had time to check out the reproducer? |
@vanniktech I took a look at the repro sample and the issue is you need to also register a |
Ah yes, now i'm getting: Isn't possible to emit a warning if you have a custom fetcher, but you haven't provided a keyer for the same type? Coil has all of the information, so it should be fairly trivial, right? |
@vanniktech Agreed. I can't remember why we don't default to In the meantime I've added a more prominent warning here: #2816 |
I have the same behavior as here: #629
Basically when you scroll down and up, the image is recycled and then needs to be loaded again. However, it takes a considerable amount of time (at least 2-3 seconds on my Pixel 6) which is too much for a memory cache, right?
I can see in logcat that the Memory Cache is used:
🧠 Successful (MEMORY)
This is how I return the image that I want to display from my custom fetcher:
Am I doing something wrong?
I'd expect the image to be rendered instantly when I scroll up again, instead I see my placeholder being shown for 2-3 seconds.
The text was updated successfully, but these errors were encountered: