diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-01 03:28:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-01 03:28:55 (GMT) |
commit | 67eb0968e1cc0e3d08c3f953a92a6ddb7ee980fe (patch) | |
tree | f52d9e2e1c3f7b9867d12debce5b10a50135bc90 /src/H5Olayout.c | |
parent | f202e3dba4171dba3e5be2f4cee34445a5239875 (diff) | |
download | hdf5-67eb0968e1cc0e3d08c3f953a92a6ddb7ee980fe.zip hdf5-67eb0968e1cc0e3d08c3f953a92a6ddb7ee980fe.tar.gz hdf5-67eb0968e1cc0e3d08c3f953a92a6ddb7ee980fe.tar.bz2 |
[svn-r8455] Purpose:
Code optimization
Description:
Eliminate more 64-bit multiplies by remebering the size of contiguous
datasets as well as chunked datasets.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'src/H5Olayout.c')
-rw-r--r-- | src/H5Olayout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Olayout.c b/src/H5Olayout.c index 9e92c3f..5dca442 100644 --- a/src/H5Olayout.c +++ b/src/H5Olayout.c @@ -147,9 +147,9 @@ H5O_layout_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p, H5O_shared_t p += mesg->size; } } - else if(mesg->type == H5D_CHUNKED) { + else if(mesg->type == H5D_CHUNKED || mesg->type == H5D_CONTIGUOUS) { /* Compute chunk size */ - for (u=0, mesg->chunk_size=1; u<mesg->ndims; u++) + for (u=1, mesg->chunk_size=mesg->dim[0]; u<mesg->ndims; u++) mesg->chunk_size *= mesg->dim[u]; } /* end if */ |