Remove unused limit/mark I/O fields

name                                             old speed     new speed     delta

wuffs_deflate_decode_1k_full_init/clang5         146MB/s ± 0%  149MB/s ± 1%  +2.33%  (p=0.000 n=9+10)
wuffs_deflate_decode_1k_part_init/clang5         180MB/s ± 0%  183MB/s ± 0%  +1.46%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5        229MB/s ± 0%  244MB/s ± 0%  +6.53%  (p=0.000 n=9+10)
wuffs_deflate_decode_10k_part_init/clang5        236MB/s ± 1%  251MB/s ± 0%  +6.38%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/clang5   266MB/s ± 0%  278MB/s ± 1%  +4.75%  (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/clang5  224MB/s ± 0%  238MB/s ± 0%  +6.03%  (p=0.000 n=10+10)

wuffs_deflate_decode_1k_full_init/gcc7           151MB/s ± 2%  151MB/s ± 0%    ~     (p=0.965 n=10+8)
wuffs_deflate_decode_1k_part_init/gcc7           187MB/s ± 1%  188MB/s ± 0%  +0.57%  (p=0.001 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7          261MB/s ± 1%  259MB/s ± 1%  -0.91%  (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7          269MB/s ± 0%  268MB/s ± 0%  -0.65%  (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/gcc7     314MB/s ± 0%  312MB/s ± 0%  -0.49%  (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7    249MB/s ± 0%  247MB/s ± 0%  -1.08%  (p=0.000 n=10+10)
This commit is contained in:
Nigel Tao committed 2019-07-06 12:07:53 +10:00
1 parent 15bd5aa63c
commit 931b8e37f9
4 files changed
+12 -85

No files matched your search

-18
View File
@@ -25,11 +25,6 @@ typedef struct {
// compatibility or safety guarantee if you do so.
struct {
struct wuffs_base__io_buffer__struct* buf;
// The bounds values are typically NULL, when created by the Wuffs public
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* mark;
uint8_t* limit;
} private_impl;
} wuffs_base__io_reader;
@@ -38,11 +33,6 @@ typedef struct {
// compatibility or safety guarantee if you do so.
struct {
struct wuffs_base__io_buffer__struct* buf;
// The bounds values are typically NULL, when created by the Wuffs public
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* mark;
uint8_t* limit;
} private_impl;
} wuffs_base__io_writer;
@@ -123,8 +113,6 @@ static inline wuffs_base__io_reader //
wuffs_base__null_io_reader() {
wuffs_base__io_reader ret;
ret.private_impl.buf = NULL;
ret.private_impl.mark = NULL;
ret.private_impl.limit = NULL;
return ret;
}
@@ -132,8 +120,6 @@ static inline wuffs_base__io_writer //
wuffs_base__null_io_writer() {
wuffs_base__io_writer ret;
ret.private_impl.buf = NULL;
ret.private_impl.mark = NULL;
ret.private_impl.limit = NULL;
return ret;
}
@@ -157,8 +143,6 @@ static inline wuffs_base__io_reader //
wuffs_base__io_buffer__reader(wuffs_base__io_buffer* buf) {
wuffs_base__io_reader ret;
ret.private_impl.buf = buf;
ret.private_impl.mark = NULL;
ret.private_impl.limit = NULL;
return ret;
}
@@ -166,8 +150,6 @@ static inline wuffs_base__io_writer //
wuffs_base__io_buffer__writer(wuffs_base__io_buffer* buf) {
wuffs_base__io_writer ret;
ret.private_impl.buf = buf;
ret.private_impl.mark = NULL;
ret.private_impl.limit = NULL;
return ret;
}