]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Simplify chunking in the copy ladder here
authorAdam Stylinski <kungfujesus06@gmail.com>
Sun, 15 Sep 2024 16:23:50 +0000 (12:23 -0400)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 26 Sep 2024 06:22:03 +0000 (08:22 +0200)
commitb80eb4c6ecf09efedc9b3bfa6a9adc03b011015f
treea904039cd09839b361c2564fb036fe78676240ba
parent8a1205fe31158472546da4fae6f06756ebea7aa0
Simplify chunking in the copy ladder here

As it turns out, trying to peel off the remainder with so many branches
caused the code size to inflate a bit too much that this function
wouldn't inline without some fairly aggressive optimization flags. Only
catching vector sized chunks here makes the loop body small enough and
having the byte by byte copy idiom at the bottom gives the compiler some
flexibility that it is likely to do something there.
inflate_p.h