Skip to content

Conversation

dreampiggy
Copy link
Contributor

This is a quick fix for #29.

For Static WebP, we don't create extra CGContext to consume RAM. Instead, just do the static WebP decoding.

Note this method still need to be protected in the LOCK/UNLOCK code, because multiple thread can access the animatedImageFrameAtIndex:, and we share the global _demux instance.

The root solution is in 5.4.2 of SDWebImage, see: SDWebImage/SDWebImage#2924

…otocol implementation still create CGContext, this can reduce RAM usage
@dreampiggy dreampiggy requested a review from kinarobin January 7, 2020 06:58
@dreampiggy dreampiggy merged commit 3e2d252 into master Jan 7, 2020
@dreampiggy dreampiggy deleted the fix_static_webp_cgcontext_RAM branch January 7, 2020 08:20
Almouro added a commit to Almouro/react-native-fast-image that referenced this pull request Feb 6, 2020
This improves RAM usage for static webp assets (see SDWebImage/SDWebImageWebPCoder#30) Potentially related to DylanVann#622
DylanVann pushed a commit to DylanVann/react-native-fast-image that referenced this pull request Mar 14, 2020
This improves RAM usage for static webp assets see: SDWebImage/SDWebImageWebPCoder#30 Potentially related to #622
lacrossehub pushed a commit to gametimesf/react-native-fast-image that referenced this pull request May 11, 2020
This improves RAM usage for static webp assets see: SDWebImage/SDWebImageWebPCoder#30 Potentially related to DylanVann#622
alicayan008 pushed a commit to alicayan008/ReactNative-fast-image that referenced this pull request Jul 4, 2023
This improves RAM usage for static webp assets see: SDWebImage/SDWebImageWebPCoder#30 Potentially related to DylanVann/react-native-fast-image#622
devanshsaini11 pushed a commit to ds-horizon/react-native-fast-image that referenced this pull request Aug 29, 2025
This improves RAM usage for static webp assets see: SDWebImage/SDWebImageWebPCoder#30 Potentially related to DylanVann/react-native-fast-image#622
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant