Commit c6a05cd
committed
[df] Revert choice to change default Snapshot TTree compression settings
61088a3
made the deliberate choice to change the default compression settings when
calling Snapshot with TTree output format from 101 to 505. This choice was the
result of internal discussion within the team, based on the empirical evidence
available up to that point that showed ZSTD outperforming ZLIB on all metrics
for the TTree datasets (as well as for RNTuple datasets).
This commit proposes to revert that choice based on new evidence, summarised at
https://github.com/vepadulano/ttree-lossless-compression-studies. The main
takeaway message from that study is that TTree datasets with branches of type
ROOT::RVec where many (if not all) of the collections are empty are compressed
better with ZLIB than with ZSTD. Being this case actually quite relevant, as
most datasets are made of branches with collection types and as the result of
analysis steps these collections may be skimmed quite drastically, there is
enough motivation to move the default compression settings for TTree back to
101.
This commit changes the default RSnapshotOptions values for compression settings
respectively to 'kUndefined' and '0' for the compression algorithm and the
compression level. When the 'kUndefined' compression algorithm is used, Snapshot
will behave differently depending on the output format: the settings will be 101
for TTree and 505 for RNTuple.
Add one test per respective output format to check the default values are
respected.1 parent b498310 commit c6a05cd
File tree
5 files changed
+68
-13
lines changed- README/ReleaseNotes/v640
- tree/dataframe
- inc/ROOT
- src
- test
5 files changed
+68
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
367 | 389 | | |
368 | 390 | | |
369 | 391 | | |
| |||
535 | 557 | | |
536 | 558 | | |
537 | 559 | | |
538 | | - | |
539 | | - | |
| 560 | + | |
540 | 561 | | |
541 | 562 | | |
542 | 563 | | |
| |||
774 | 795 | | |
775 | 796 | | |
776 | 797 | | |
777 | | - | |
778 | 798 | | |
779 | | - | |
| 799 | + | |
| 800 | + | |
780 | 801 | | |
781 | 802 | | |
782 | 803 | | |
| |||
929 | 950 | | |
930 | 951 | | |
931 | 952 | | |
932 | | - | |
| 953 | + | |
933 | 954 | | |
934 | 955 | | |
935 | 956 | | |
| |||
1151 | 1172 | | |
1152 | 1173 | | |
1153 | 1174 | | |
1154 | | - | |
1155 | | - | |
| 1175 | + | |
1156 | 1176 | | |
1157 | 1177 | | |
1158 | 1178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
250 | 266 | | |
251 | 267 | | |
252 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
173 | 193 | | |
174 | 194 | | |
175 | 195 | | |
| |||
0 commit comments