diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-20 01:32:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-20 01:32:35 (GMT) |
commit | 9dad79e3f89fe69857cae152fbcba52b08b19dfd (patch) | |
tree | 3742794b688189a6001ffc3bb367336814ca2786 /src/H5Ofill.c | |
parent | bb4d9ebc552ca5e8a19b86d961363e6ac4abc6a6 (diff) | |
download | hdf5-9dad79e3f89fe69857cae152fbcba52b08b19dfd.zip hdf5-9dad79e3f89fe69857cae152fbcba52b08b19dfd.tar.gz hdf5-9dad79e3f89fe69857cae152fbcba52b08b19dfd.tar.bz2 |
[svn-r10238] Purpose:
Optimization
Description:
Speed up I/O on enumerated datatypes (including those nested in compound
datatypes, arrays, etc.) if the destination datatype is a proper superset of
the source datatype.
Solution:
Detect the situation and treat as no-op datatype conversion.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r-- | src/H5Ofill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c index d6e35a1..a7c0af9 100644 --- a/src/H5Ofill.c +++ b/src/H5Ofill.c @@ -826,7 +826,7 @@ H5O_fill_convert(void *_fill, H5T_t *dset_type, hid_t dxpl_id) assert(dset_type); /* No-op cases */ - if (!fill->buf || !fill->type || 0==H5T_cmp(fill->type, dset_type)) { + if (!fill->buf || !fill->type || 0==H5T_cmp(fill->type, dset_type, FALSE)) { if (fill->type) H5T_close(fill->type); fill->type = NULL; |