UIimage is first loaded as a Data buffer and then decompressed as an image buffer the memory occupied by the image buffer is only related to the actual size of the image and then the GPU renders the image buffer as a frame buffer frame Buffer allocation only depends on the size of the image and not the size of the UIimageview

So the optimization strategy is to change the size of the image represented by UIimage

Use downsampling technique data Buffer -> Thumbnail -> Image Buffer

kCGImageSourceCreateThumbnailFromImageAlways

www.jianshu.com/p/8ba48110b…