-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Increased default maxConcurrentOperationCount, fixes #527 #897
Increased default maxConcurrentOperationCount, fixes #527 #897
Conversation
I think this is a value people should set on their own. Our default value must be a middle one. |
Still, a good default value is one that fits the most common use cases and loading images in cells is arguable on of the top ones. People are having performance problems because it is difficult to draw the conclusion that the Would you feel more comfortable with a lower value, like 6? |
Ok for me |
I agree as well. |
a24f401
to
09b6ee9
Compare
Lowered it to 6 |
Thanks for the quick turnaround. Merging |
Increased default maxConcurrentOperationCount, fixes #527
Guys, did you profile this change before making it? It should really be the responsibility of the client to cancel requests that are no longer valid (cell goes off screen) or manually modifying this default if their application best fits a large number of concurrent connections...like a table view with many small images. However, changing a very reasonable default of This change may have contributed to the 15 or so tickets that are currently open due to extreme memory pressure |
I would say that applications that concurrently shows many very large images is not a typical use case compared to images in table & collection views. One should optimize for the common case. If you're queuing up several full retina images, it's not wise to decompress all of them before actually showing them anyway. The memory issues in SDWebImage have been around since long before this fix and are related to live allocations building up over time, not temporal spikes, why this change doesn't affect those issues. |
The default maxConcurrentOperationCount is set way too low in the image downloader (see issue #527). By increasing it, table/collection view performance is drastically improved. Especially when downloading images of mixed file sizes, as in the demo project.