From 1f9e391e7d400f6e4fb1d8231c6970d9cebe787c Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 21 Oct 2017 13:20:14 +1100 Subject: [PATCH] Add a TODO to add a checksum opt out API. --- std/flate/decode_zlib.puffs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/std/flate/decode_zlib.puffs b/std/flate/decode_zlib.puffs index e302f26c..4e4c91f0 100644 --- a/std/flate/decode_zlib.puffs +++ b/std/flate/decode_zlib.puffs @@ -40,6 +40,8 @@ pub func zlib_decoder.decode?(dst writer1, src reader1)() { var checksum u32 while true { var z status = try this.flate.decode?(dst:in.dst, src:in.src) + // TODO: expose some API to opt out of checksumming, trading off error + // detection for throughput. checksum = this.adler.update(x:in.dst.slice()) if z.is_ok() { break