diff options
author | Thomas White <taw@physics.org> | 2014-11-21 16:47:16 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-11-21 16:47:52 +0100 |
commit | 1cd2c211e10df4befab71a41e781d12bee25c23a (patch) | |
tree | 3eb5042a57ff0ec3234d2a8763a701c62b0744e3 /libcrystfel/src | |
parent | 65a80a982aaa9194c0f58b5cef7a8eeea27b82b1 (diff) |
Disable compression when writing HDF5 files
Compression halves the processing speed when simulating realistic patterns (with background etc)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 10 |
1 files changed, 0 insertions, 10 deletions
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); |