You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have found that decode animated gifs with version 4.1.4 takes approx. 50 times longer than with version 4.1.3.
In version 4.1.7 it is still like this.
Here are my recorded times for different versions, for the example gif.
final decoder = Image.findDecoderForData(bytes);
if (decoder == null) return null;
var startTime = DateTime.now();
var animation = <Image.Image>[];
var image = decoder.decode(bytes);
print(DateTime.now().difference(s).inMilliseconds.toString());
The text was updated successfully, but these errors were encountered:
The palette remapping code that was added to handle GIFs per-frame palettes is terribly slow currently, so I disabled it for now. The example gif you provided still parses correctly, but GIF is a weird format so some edge case gifs might have a problem without the remapping. I'll have to find a faster way to do that.
The version in git should be a lot faster than it was. It will still have some overhead over the 4.1.3 version, but the 4.1.3 version had a lot of issue with animated gifs.
We have found that decode animated gifs with version 4.1.4 takes approx. 50 times longer than with version 4.1.3.
In version 4.1.7 it is still like this.
Here are my recorded times for different versions, for the example gif.
4.1.2 approx 1s
4.1.3 approx 1s
4.1.4 approx 56s
4.1.7 approx 56s
Example gif:
http://up.picr.de/18592631jk.gif
Source code
The text was updated successfully, but these errors were encountered: