Closed pete4abw closed 4 years ago
Some notes about this PR. Please test, review, benchmark, and comment. Because of the nature and depth of changes, recommend bumping version. I set as 0.640Beta.
if (LZMA_COMPRESS) {
if (control->dictSize == 0)
switch (control->compression_level) {
case 1:
case 2:
case 3:
case 4:
case 5: control->dictSize = (1 << (control->compression_level * 2 + 14));
break; // 65KB to 16MB
case 6:
case 7: control->dictSize = (1 << 25);
break; // 32MB
case 8: control->dictSize = (1 << 26);
break; // 64MB
case 9: control->dictSize = (1 << 27);
break; // 128MB -- this is maximum for 32 bits
default: control->dictSize = (1 << 24);
break; // 16MB -- should never reach here
}
control->overhead = (control->dictSize * 23 / 2) + (6 * 1024 * 1024) + 16384;
So many changes in testing. Withdrawing. See my fork for SDK 19 for current work.