summaryrefslogtreecommitdiffstats
path: root/src/H5Oprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-04-06 13:37:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-04-06 13:37:48 (GMT)
commit8174e4c28643ba1b7f42fe1b8c5dc9f961aa2e5a (patch)
tree421026f1cc3340ca648a0daa1e61441fed63f78c /src/H5Oprivate.h
parentfc152eff1c4a7118f43bddb6ac3c9b3c4d69bfac (diff)
downloadhdf5-8174e4c28643ba1b7f42fe1b8c5dc9f961aa2e5a.zip
hdf5-8174e4c28643ba1b7f42fe1b8c5dc9f961aa2e5a.tar.gz
hdf5-8174e4c28643ba1b7f42fe1b8c5dc9f961aa2e5a.tar.bz2
[svn-r8304] Purpose:
Code optimization Description: Compute the size of a chunk once, when the layout information is set, instead of each time I/O is performed on the chunk. Platforms tested: h5committest Solaris 2.7 (arabica)
Diffstat (limited to 'src/H5Oprivate.h')
-rw-r--r--src/H5Oprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h
index 4219a46..6dd8a79 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -126,6 +126,7 @@ typedef struct H5O_layout_t {
haddr_t addr; /*file address of data or B-tree */
unsigned ndims; /*num dimensions in stored data */
hsize_t dim[H5O_LAYOUT_NDIMS]; /*size of data or chunk in bytes */
+ hsize_t chunk_size; /*size of chunk in bytes */
hbool_t dirty; /*dirty flag for compact dataset */
size_t size; /*size of compact dataset in bytes */
void *buf; /*buffer for compact dataset */