]> git.ipfire.org Git - thirdparty/zstd.git/commit
Remove expensive assert in --rsyncable hot loop 3154/head
authorNick Terrell <terrelln@fb.com>
Mon, 6 Jun 2022 18:56:13 +0000 (11:56 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 6 Jun 2022 18:56:13 +0000 (11:56 -0700)
commit7c05b9aec3e18bf733cccff6dda97ea269bb8594
treed21d0bda9bb5816c5019dfb9fa3ab919c81c2300
parent9f346dbe45111a9704c02bbc58360982a3f62069
Remove expensive assert in --rsyncable hot loop

This assert slows the loop down by 10x. We can get similar
coverage by asserting at the beginning & end of the loop.

We need this fix because Debian compiles zstd with asserts
enabled. Separately, we should ask them why, and if they would
consider disabling asserts in their builds. Since we don't
optimize for assert enabled builds.

Fixes Issue #3150.
lib/compress/zstdmt_compress.c