Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement support for request priorities #666
Not sure if you've considered something like this in the past but here it is. This patch implements request priority support in Picasso. This feature can be especially handy when you have UIs with lots of images and you want to have tighter control over which images should load first. This is inspired by Volley's API.
It adds a new API in
Picasso.with(context) .load("http://example.com/image.jpg") .priority(HIGH) .into(someImageView);
Priority can be
We have, but I think those might be too many priorities. This is the same problem as log levels. Everyone wants a lower log level or a higher log level because they abuse them.
I wanted only two, but I can probably be convinced for three. I don't think I can be convinced of four.
One of the more challenging things I'd like to figure out is a way to limit the number of threads on which