Remove checks for obsolete limit/mark I/O fields

name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         137MB/s ± 0%  146MB/s ± 0%  +6.53%  (p=0.000 n=10+9)
wuffs_deflate_decode_1k_part_init/clang5         165MB/s ± 0%  180MB/s ± 0%  +9.03%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        226MB/s ± 0%  229MB/s ± 0%  +1.52%  (p=0.000 n=9+9)
wuffs_deflate_decode_10k_part_init/clang5        232MB/s ± 1%  236MB/s ± 1%  +1.86%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_just_one_read/clang5   265MB/s ± 0%  266MB/s ± 0%  +0.27%  (p=0.008 n=10+9)
wuffs_deflate_decode_100k_many_big_reads/clang5  223MB/s ± 0%  224MB/s ± 0%  +0.84%  (p=0.000 n=9+10)

wuffs_deflate_decode_1k_full_init/gcc7           151MB/s ± 0%  151MB/s ± 2%    ~     (p=1.000 n=8+10)
wuffs_deflate_decode_1k_part_init/gcc7           186MB/s ± 0%  187MB/s ± 1%  +0.52%  (p=0.003 n=8+10)
wuffs_deflate_decode_10k_full_init/gcc7          253MB/s ± 1%  261MB/s ± 1%  +3.10%  (p=0.000 n=9+10)
wuffs_deflate_decode_10k_part_init/gcc7          261MB/s ± 0%  269MB/s ± 0%  +3.02%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_just_one_read/gcc7     312MB/s ± 0%  314MB/s ± 0%  +0.66%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7    251MB/s ± 0%  249MB/s ± 0%  -0.59%  (p=0.000 n=9+10)
This commit is contained in:
Nigel Tao committed 2019-07-06 11:56:49 +10:00
1 parent d7d2d9708e
commit 9e34b2bd2f
2 files changed
+95 -212

No files matched your search

+4 -9
View File
@@ -112,20 +112,15 @@ func (g *gen) writeLoadDerivedVar(b *buffer, hack string, prefix string, name t.
iopPrefix, preName, preName, preName, i0)
if header {
b.printf("if (!%s.private_impl.mark) {", preName)
b.printf("%s.private_impl.mark = %s%s;", preName, iopPrefix, preName)
b.printf("%s.private_impl.limit = %s.private_impl.buf->data.ptr + %s.private_impl.buf->%s;",
preName, preName, preName, i1)
b.printf("}\n")
b.printf("%s%s = %s%s;", io0Prefix, preName, iopPrefix, preName)
b.printf("%s%s = %s.private_impl.buf->data.ptr + %s.private_impl.buf->%s;",
io1Prefix, preName, preName, preName, i1)
if typ.QID()[1] == t.IDIOWriter {
b.printf("if (%s.private_impl.buf->meta.closed) {", preName)
b.printf("%s.private_impl.limit = %s%s;", preName, iopPrefix, preName)
b.printf("%s%s = %s%s;", io1Prefix, preName, iopPrefix, preName)
b.printf("}\n")
}
b.printf("%s%s = %s.private_impl.mark;", io0Prefix, preName, preName)
b.printf("%s%s = %s.private_impl.limit;", io1Prefix, preName, preName)
}
b.printf("}\n")