Checkout
Tobias Bocanegra
committed
on 02 Jun 17
JCRVLT-163 - Avoid compressing incompressible binaries

Allowing to define compression levels (JCRVLT-164) is covered.
The compression level… Show more
JCRVLT-163 - Avoid compressing incompressible binaries

Allowing to define compression levels (JCRVLT-164) is covered.

The compression level can optionally be set via the ExportOptions.

The default compression level is backward compatible (DEFAULT_COMPRESSION).

The binary optimization (JCRVLT-163) is enabled depending on the compression level.

The DEFAULT_COMPRESSION, NO_COMPRESSION and BEST_COMPRESSION levels do not enable

the binary optimization, the remaining levels do.

The min length threshold to run the auto-detection binary optimization is defined

such that in the worst case (data is compressible) the cost required to run the

auto-detection is no bigger than 3% of the cost to compress the same data.

The parameters in place should be tweaked.

(this closes #10) Show less