mayoff / uiimage-from-animated-gif

A UIImage category that loads animated GIFs
Creative Commons Zero v1.0 Universal
877 stars 164 forks source link

High memory usage #10

Closed RomanTruba closed 8 years ago

RomanTruba commented 10 years ago

Here is example gif. After decoding it and show on the screen, memory usage increase to 95 mb in empty application. Example code http://paste.org.ru/?ix5w5s 2

How can I decrease memory usage?

drico commented 9 years ago

I agree this is a main issue, particularly in a keyboard extention where the memory usage is limited to 40MB.

KimDarren commented 8 years ago

@Dreddik How could you solve this problem?

mayoff commented 8 years ago

If you need to display this sort of animated GIF, I recommend you use FLAnimatedImage instead of this project. I'm not going to solve this problem.

KimDarren commented 8 years ago

@mayoff Thank you for the advice! I tried to use FLAnimatedImage, your project's performance was much better.. Do you know any other way to use GIF in iOS?

mayoff commented 8 years ago

No.

KimDarren commented 8 years ago

@mayoff Okay. Thank you so much 😄