-
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
Feature: start RequestManager sooner than onStart(). To reduce latency #930
Comments
The following is just a guess, let's hear from @sjudd about the design decision. The view becomes visible after Even cold start time was reduced by using the modules to be able to delay class loading and construction until the first usage so user has something to look at faster. See #299. |
It's quite easy to start the RequestManager earlier if it would help in a specific case: That said, my understanding is that ui isn't visible to the user until The documentation claims:
|
Thanks guys for such insightful comments so quickly! (It also made me discover inline code markdown) @sjudd I believe you are correct and the latency is the time between All this to say: Getting |
@TWiStErRob @sjudd
It is not a big deal as there is a documented api to work around the issue. |
The RequestManager is paused until the onStart() lifecycle event is triggered. It might be better to start the RequestManager sooner in the lifecycle (in addition to onStart) for example by creating the request manager in the started state.
I do not know what the reasoning is to postpone the start of the request manager, there is probably a good reason :)
The reason for this request is the following observation.
I have an app that:
From the logs I can tell that the loading into the ImageView results in a MEMORY_CACHE hit in under 1ms.
However the RequestListener.onResourceReady() is not called until the RequestManager is started.
The result is an additional latency of about 80-100ms (depends on device and layout)
When I force the requestManager to start immediately after I load the url into() the ImageView the latency disappears.
The text was updated successfully, but these errors were encountered: