]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Use memcpy for stored blocks.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 30 Oct 2016 16:25:32 +0000 (09:25 -0700)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Wed, 1 Feb 2017 12:48:42 +0000 (13:48 +0100)
commitfe196b9a500a846e39d774decc7784c100de7878
tree824f94345c886270ccf42ca537005b195b7a0ebc
parenta1b5cbc8c87ff252c7bdc4195632ca26200bf4f1
Use memcpy for stored blocks.

This speeds up level 0 by about a factor of three, as compared to
the previous byte-at-a-time loop. We can do much better though. A
later commit avoids this copy for level 0 with large buffers,
instead copying directly from the input to the output. This commit
still speeds up storing incompressible data found when compressing
normally.
trees.c