commit | da1718f266fcfc091e7bf08aae1bc986d0e6cc6b | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Sun May 25 21:45:56 2014 +0300 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Sun May 25 21:45:56 2014 +0300 |
tree | 343d14494eca3d36aa91782d78227cc6eceafc4f | |
parent | 28af24e9cf2eb259997c85dce13d4c97b3daa47a [diff] |
liblzma: Use lzma_alloc_zero() in LZ encoder initialization. This avoids a memzero() call for a newly-allocated memory, which can be expensive when encoding small streams with an over-sized dictionary. To avoid using lzma_alloc_zero() for memory that doesn't need to be zeroed, lzma_mf.son is now allocated separately, which requires handling it separately in normalize() too. Thanks to Vincenzo Innocente for reporting the problem.