summaryrefslogtreecommitdiffstats
path: root/src/H5Oprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-04-06 13:37:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-04-06 13:37:18 (GMT)
commit394dace97be91c6b4a5d1dc23538cc2c12566fb8 (patch)
treeb60b45012c334436c0fa11b5adcfab7ad128322b /src/H5Oprivate.h
parent43d3a9bfe8dfc060615b4a0f133ebf35bcb0f2f8 (diff)
downloadhdf5-394dace97be91c6b4a5d1dc23538cc2c12566fb8.zip
hdf5-394dace97be91c6b4a5d1dc23538cc2c12566fb8.tar.gz
hdf5-394dace97be91c6b4a5d1dc23538cc2c12566fb8.tar.bz2
[svn-r8303] 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 70362ad..49cb08e 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -129,6 +129,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 */