added workSpaceTooLarge and workSpaceWasteful

also :
slightly increased speed of test fuzzer.16
This commit is contained in:
Yann Collet
2018-06-05 11:42:48 -07:00
parent bdb673666f
commit 3d523c741b
3 changed files with 62 additions and 29 deletions
+5 -1
View File
@@ -27,6 +27,7 @@
extern "C" {
#endif
/*-*************************************
* Constants
***************************************/
@@ -37,7 +38,8 @@ extern "C" {
It's not a big deal though : candidate will just be sorted again.
Additionnally, candidate position 1 will be lost.
But candidate 1 cannot hide a large tree of candidates, so it's a minimal loss.
The benefit is that ZSTD_DUBT_UNSORTED_MARK cannot be misdhandled after table re-use with a different strategy */
The benefit is that ZSTD_DUBT_UNSORTED_MARK cannot be misdhandled after table re-use with a different strategy
Constant required by ZSTD_compressBlock_btlazy2() and ZSTD_reduceTable_internal() */
/*-*************************************
@@ -204,6 +206,8 @@ struct ZSTD_CCtx_s {
ZSTD_CCtx_params requestedParams;
ZSTD_CCtx_params appliedParams;
U32 dictID;
int workSpaceTooLarge;
void* workSpace;
size_t workSpaceSize;
size_t blockSize;