Skip to content

Commit 49696e5

Browse files
committed
TBasket::WriteBuffer comment when we reject cascade compression
1 parent f746004 commit 49696e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tree/tree/src/TBasket.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,8 @@ Int_t TBasket::WriteBuffer()
13181318
if (doPrecisionCascades) {
13191319
bufmaxs.assign(precisionCascades.size(),bufmax); // assuming bufmax is the same for each of the precisionCascade buffers
13201320
R__zipPrecisionCascade(&bufmax, objbuf, bufmaxs.data(), precisionCascades.data(), precisionCascades.size(), nouts.data(), cxAlgorithm, datatype, configArraySize, configArray);
1321+
// We keep the compression as long as the first buffer/file is smaller,
1322+
// even if the cumulutative size is larger.
13211323
nout = nouts[0];
13221324
} else {
13231325
R__zipMultipleAlgorithm(cxlevel, &bufmax, objbuf, &bufmax, bufcur, &nout, cxAlgorithm, datatype, configArraySize, configArray);

0 commit comments

Comments
 (0)