Update GIF frame_dirty_rect more frequently

It's not an optimization per se, but for the record:

name                                    old speed     new speed     delta

wuffs_gif_decode_1k_bw/clang            260MB/s ± 1%  261MB/s ± 0%  +0.51%  (p=0.032 n=5+5)
wuffs_gif_decode_1k_color/clang         122MB/s ± 0%  123MB/s ± 1%    ~     (p=0.222 n=5+5)
wuffs_gif_decode_10k/clang              148MB/s ± 1%  148MB/s ± 0%    ~     (p=0.421 n=5+5)
wuffs_gif_decode_100k_artificial/clang  439MB/s ± 0%  443MB/s ± 1%  +0.99%  (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang   174MB/s ± 1%  173MB/s ± 1%    ~     (p=0.151 n=5+5)
wuffs_gif_decode_1000k/clang            175MB/s ± 0%  175MB/s ± 0%  -0.30%  (p=0.016 n=4+5)
wuffs_gif_decode_anim_screencap/clang   941MB/s ± 1%  948MB/s ± 0%  +0.74%  (p=0.016 n=5+5)

wuffs_gif_decode_1k_bw/gcc              266MB/s ± 0%  273MB/s ± 0%  +2.60%  (p=0.008 n=5+5)
wuffs_gif_decode_1k_color/gcc           137MB/s ± 0%  139MB/s ± 0%  +1.54%  (p=0.008 n=5+5)
wuffs_gif_decode_10k/gcc                163MB/s ± 0%  162MB/s ± 0%    ~     (p=0.151 n=5+5)
wuffs_gif_decode_100k_artificial/gcc    457MB/s ± 0%  456MB/s ± 0%    ~     (p=0.095 n=5+5)
wuffs_gif_decode_100k_realistic/gcc     184MB/s ± 0%  182MB/s ± 0%  -1.02%  (p=0.008 n=5+5)
wuffs_gif_decode_1000k/gcc              186MB/s ± 0%  184MB/s ± 0%  -1.04%  (p=0.016 n=5+4)
wuffs_gif_decode_anim_screencap/gcc     985MB/s ± 1%  980MB/s ± 0%    ~     (p=0.095 n=5+5)
This commit is contained in:
Nigel Tao committed 2018-11-24 10:17:16 +11:00
1 parent e84a716313
commit 8ab2a33aae
3 files changed
+46 -28

No files matched your search

+3 -5
View File
@@ -862,9 +862,7 @@ const char* test_wuffs_gif_frame_dirty_rect() {
// 2, 6, 10, ..., 22, 26, 1, 3, 5, ..., 25, 27. As we progress, the dirty
// rect's max_excl_y should be one more than the highest decoded row so far.
// If we haven't decoded any rows yet, max_excl_y should be zero.
//
// TODO: this should be 0, 1, 9, 17, 25, 27, 28.
uint32_t wants[2] = {0, 28};
uint32_t wants[7] = {0, 1, 9, 17, 25, 27, 28};
int i = 0;
while (true) {
@@ -1135,7 +1133,7 @@ const char* test_wuffs_gif_io_position_two_chunks() {
return do_test_wuffs_gif_io_position(true);
}
// ---------------- Mimic Tests
// ---------------- Mimic Tests
#ifdef WUFFS_MIMIC
@@ -1319,7 +1317,7 @@ const char* bench_wuffs_gif_decode_anim_screencap() {
"test/data/gifplayer-muybridge.gif", 1);
}
// ---------------- Mimic Benches
// ---------------- Mimic Benches
#ifdef WUFFS_MIMIC