diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-08 19:09:50 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-08 19:09:50 (GMT) |
commit | 0f805b3aa507d557fbab6cc8ccec81b50daf6dd8 (patch) | |
tree | 10f5d92e41a140dd11711f7af0d845079601e87d /src/H5A.c | |
parent | 583bdf994cb40b4568a09657a0961392660ebdff (diff) | |
download | hdf5-0f805b3aa507d557fbab6cc8ccec81b50daf6dd8.zip hdf5-0f805b3aa507d557fbab6cc8ccec81b50daf6dd8.tar.gz hdf5-0f805b3aa507d557fbab6cc8ccec81b50daf6dd8.tar.bz2 |
[svn-r8496] Purpose:
Code optimization
Description:
Further reduce the number of copies we make of a hyperslab selection for
chunked I/O, especially when we are only going to throw the old selection away
for a new one.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir) w/parallel
Diffstat (limited to 'src/H5A.c')
-rw-r--r-- | src/H5A.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -241,7 +241,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type, HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "invalid datatype location") /* Copy the dataspace for the attribute */ - attr->ds=H5S_copy(space); + attr->ds=H5S_copy(space, FALSE); /* Mark it initially set to initialized */ attr->initialized = TRUE; /*for now, set to false later*/ @@ -872,7 +872,7 @@ H5Aget_space(hid_t attr_id) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an attribute") /* Copy the attribute's dataspace */ - if (NULL==(dst=H5S_copy (attr->ds))) + if (NULL==(dst=H5S_copy (attr->ds, FALSE))) HGOTO_ERROR (H5E_ATTR, H5E_CANTINIT, FAIL, "unable to copy dataspace") /* Atomize */ @@ -1513,7 +1513,7 @@ H5A_copy(const H5A_t *old_attr) /* Copy the guts of the attribute */ new_attr->name=HDstrdup(old_attr->name); new_attr->dt=H5T_copy(old_attr->dt, H5T_COPY_ALL); - new_attr->ds=H5S_copy(old_attr->ds); + new_attr->ds=H5S_copy(old_attr->ds, FALSE); if(old_attr->data) { if (NULL==(new_attr->data=H5MM_malloc(old_attr->data_size))) HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed") |