-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Adds support for specifying a quality indexed array of URLs #557
Conversation
🚫 CI failed with log |
🚫 CI failed with log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some questions aside, LGTM!
Source/ASNetworkImageNode.mm
Outdated
[self _locked__setImage:result]; | ||
|
||
_imageLoaded = YES; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we're fetching images from low cost to higher cost and don't bail as soon as there is a cache hit. Does this mean that if there are multiple images, we'll end up fetching all of them but only use the best one? If that's the case, should we instead fetch in reverse order and stop as early as possible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good catch!
3cf0055
to
524081e
Compare
…roup#557) * Add support for downloading a set of URLs on ASNetworkImageNode * Should be building now; * Remove old unused code * Add a changelog message * Bump PINRemoteImage * Huy's comments
…extureGroup#699) * Revert "Adds support for specifying a quality indexed array of URLs (TextureGroup#557)" This reverts commit 3c77d4a. * Add CHANGELOG entry
This allows PINRemoteImage to download from a set of URLs depending on network conditions.
More context perhaps:
pinterest/PINRemoteImage#407
pinterest/PINRemoteImage#403