zstd/lib/compress
Yann Collet 5d5c895b18 fix initCStream_advanced() for fast strategies
Compression ratio of fast strategies (levels 1 & 2)
was seriously reduced, due to accidental disabling of Literals compression.

Credit to @QrczakMK, which perfectly described the issue, and implementation details,
making the fix straightforward.

Example : initCStream with level 1 on synthetic sample P50 :
Before : 5,273,976 bytes
After  : 3,154,678 bytes
ZSTD_compress (for comparison) : 3,154,550

Fix #1787.

To follow : refactor the test which was supposed to catch this issue (and failed)
2019-10-22 15:01:38 -07:00
..
fse_compress.c Spelling (#1582) 2019-04-12 11:18:11 -07:00
hist.c refactor HUF_compress_internal for clarity 2018-10-26 13:21:37 -07:00
hist.h refactor HUF_compress_internal for clarity 2018-10-26 13:21:37 -07:00
huf_compress.c fix confusion between unsigned <-> U32 2018-12-21 18:09:41 -08:00
zstd_compress_internal.h Merge pull request #1760 from bimbashrestha/extract_sequences_api 2019-10-10 13:11:18 -07:00
zstd_compress_literals.c Disambiguate 'workspace' and 'entropyWorkspace' 2019-09-09 13:34:08 -04:00
zstd_compress_literals.h Disambiguate 'workspace' and 'entropyWorkspace' 2019-09-09 13:34:08 -04:00
zstd_compress_sequences.c Disambiguate 'workspace' and 'entropyWorkspace' 2019-09-09 13:34:08 -04:00
zstd_compress_sequences.h Disambiguate 'workspace' and 'entropyWorkspace' 2019-09-09 13:34:08 -04:00
zstd_compress.c fix initCStream_advanced() for fast strategies 2019-10-22 15:01:38 -07:00
zstd_cwksp.h Merge pull request #1834 from facebook/winFix 2019-10-21 13:45:17 -07:00
zstd_double_fast.c Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy() 2019-09-20 00:56:20 -07:00
zstd_double_fast.h Also Remove CParams from Table Filling Functions' Args 2018-09-28 17:10:42 -07:00
zstd_fast.c Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy() 2019-09-20 00:56:20 -07:00
zstd_fast.h Also Remove CParams from Table Filling Functions' Args 2018-09-28 17:10:42 -07:00
zstd_lazy.c Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy() 2019-09-20 00:56:20 -07:00
zstd_lazy.h Spelling (#1582) 2019-04-12 11:18:11 -07:00
zstd_ldm.c Add ZSTD_cwksp_alloc_size() to Help Calculate Needed Workspace Size 2019-10-10 13:40:16 -04:00
zstd_ldm.h changed hashEveryLog into hashRateLog 2018-11-21 14:36:57 -08:00
zstd_opt.c Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy() 2019-09-20 00:56:20 -07:00
zstd_opt.h changed ZSTD_c_compressionStrategy into ZSTD_c_strategy 2018-12-06 15:00:52 -08:00
zstdmt_compress.c [zstdmt] Don't memset the jobDescription 2019-10-18 15:05:51 -07:00
zstdmt_compress.h [ldm] Fix bug in overflow correction with large job size (#1678) 2019-07-12 18:45:18 -04:00