Skip to content

Commit

Permalink
Turn on preprocessing shuffle for better HDF5 compression.
Browse files Browse the repository at this point in the history
I noticed this when the alabaster-produced files are larger than those
produced by our internal artificer packages. This change aligns with
rhdf5's default approach when Zlib compression is enabled.
  • Loading branch information
LTLA committed Sep 13, 2024
1 parent a593ffd commit 7509a17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: alabaster.base
Title: Save Bioconductor Objects To File
Version: 1.5.7
Date: 2024-09-10
Version: 1.5.8
Date: 2024-09-13
Authors@R: person("Aaron", "Lun", role=c("aut", "cre"), email="[email protected]")
License: MIT + file LICENSE
Description:
Expand Down
1 change: 1 addition & 0 deletions R/hdf5.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ h5_create_vector <- function(handle, name, len, type, compress=6, chunks=NULL, s
H5Pset_obj_track_times(phandle, FALSE)

if (compress > 0 && len) {
H5Pset_shuffle(phandle)
H5Pset_deflate(phandle, level=compress)
if (is.null(chunks)) {
chunks <- h5_guess_vector_chunks(len)
Expand Down

0 comments on commit 7509a17

Please sign in to comment.