Commit a456d898bb5d81a5e33705bfe2d476af8d4fee98

Mark Adler 2016-10-30T09:25:32

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.