-
-
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
SDWebImage uses more memory when image is loaded for the first time #1354
Comments
is the image large in resolution or size? |
Exactly. 4096 * 4096 pixels, jpeg. |
That's a logical memory spike then.
|
Just a reference for the image used: |
That's true, but what's the reason for the spike to not occur when the image is loaded from the disk? |
bump |
Not sure how to proceed here. Large images will do spikes, no matter what we do |
I agree, It's not logical. It's larger than it should be. It also happens for small images (the spike is just smaller). |
While working with SDWebImage, we observed that the initial download of an image takes more memory than loading the image from the disk cache.
The memory consumption can be seen in the above screenshot. The call was identical both times, the image was downloaded from the internet the first time, and then loaded from disk the second time.
In this case, the issue increased the memory consumption by about 50 MB.
How could we work around this additional memory consumption?
The text was updated successfully, but these errors were encountered: