commit | a456d898bb5d81a5e33705bfe2d476af8d4fee98 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sun Oct 30 09:25:32 2016 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sun Dec 04 07:39:25 2016 -0800 |
tree | d2f0f998314fef139c0f101baf5b6e58e83853d7 | |
parent | 03614c56ad299f9b238c75aa1e66f0c08fc4fc8b [diff] |
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.