Skip to content

Commit 4df6f29

Browse files
The9CatCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 72c66c3 commit 4df6f29

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utils/PhaseSpace/hdf5bods.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ createFilterProps(const std::vector<hsize_t>& chunk_dims,
116116
HighFive::DataSetCreateProps props;
117117
props.add(HighFive::Chunking(chunk_dims));
118118

119+
// For most compressors, applying shuffle improves compression for floating-point data.
120+
// (Blosc can do its own shuffling internally; shuffle-only/checksum-only are handled below.)
119121
if (filter_id != 3 && filter_id != 4 && filter_id != 32001) {
122+
props.add(HighFive::Shuffle());
120123
}
121-
122124
hid_t plist_id = props.getId();
123125
std::vector<unsigned int> cd_values;
124126

0 commit comments

Comments
 (0)