]> git.lizzy.rs Git - zlib.git/commit
Use memcpy for stored blocks.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 30 Oct 2016 16:25:32 +0000 (09:25 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 4 Dec 2016 15:39:25 +0000 (07:39 -0800)
commita456d898bb5d81a5e33705bfe2d476af8d4fee98
treed2f0f998314fef139c0f101baf5b6e58e83853d7
parent03614c56ad299f9b238c75aa1e66f0c08fc4fc8b
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