diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2014-05-25 21:45:56 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2014-05-25 21:45:56 +0300 |
commit | da1718f266fcfc091e7bf08aae1bc986d0e6cc6b (patch) | |
tree | 343d14494eca3d36aa91782d78227cc6eceafc4f /lib | |
parent | liblzma: Add the internal function lzma_alloc_zero(). (diff) | |
download | xz-da1718f266fcfc091e7bf08aae1bc986d0e6cc6b.tar.xz |
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.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions