From 1cd2c211e10df4befab71a41e781d12bee25c23a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 21 Nov 2014 16:47:16 +0100 Subject: Disable compression when writing HDF5 files Compression halves the processing speed when simulating realistic patterns (with background etc) --- libcrystfel/src/hdf5-file.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 6115b815..88bd61c4 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -351,11 +351,6 @@ int hdf5_write(const char *filename, const void *data, size[1] = width; sh = H5Screate_simple(2, size, NULL); - /* Set compression */ - ph = H5Pcreate(H5P_DATASET_CREATE); - H5Pset_chunk(ph, 2, size); - H5Pset_deflate(ph, 3); - dh = H5Dcreate2(gh, "data", type, sh, H5P_DEFAULT, ph, H5P_DEFAULT); if ( dh < 0 ) { @@ -540,11 +535,6 @@ static void write_location(hid_t fh, struct image *image, size[1] = loc->max_fs+1; sh = H5Screate_simple(2, size, NULL); - /* Set compression */ - ph = H5Pcreate(H5P_DATASET_CREATE); - H5Pset_chunk(ph, 2, size); - H5Pset_deflate(ph, 3); - if ( group != NULL ) { dh = H5Dcreate2(gh, object, H5T_NATIVE_FLOAT, sh, H5P_DEFAULT, ph, H5P_DEFAULT); -- cgit v1.2.3