diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-12 18:44:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-12 18:44:26 (GMT) |
commit | 13678f745b0051172587a15d79ea7c0c0f5a1d8c (patch) | |
tree | 6044cccb49d81f47ed4bd1b7cc8fadb117f3f0de /src/H5Tpkg.h | |
parent | 980683f1e1373f82e20d93846c138c4dc45952e0 (diff) | |
download | hdf5-13678f745b0051172587a15d79ea7c0c0f5a1d8c.zip hdf5-13678f745b0051172587a15d79ea7c0c0f5a1d8c.tar.gz hdf5-13678f745b0051172587a15d79ea7c0c0f5a1d8c.tar.bz2 |
[svn-r8507] Purpose:
Code optimization
Description:
Eliminate many redundant lookups to check for no-op type conversion by
remembering that a type conversion path is the no-op path.
Also, don't allow non-no-op conversions which happen to be no-ops on a
particular machine (such as int<->long conversions on machines where int and
long are the same size and format, etc.) to replace the default no-op
conversion.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir) w/parallel
Diffstat (limited to 'src/H5Tpkg.h')
-rw-r--r-- | src/H5Tpkg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h index 5828ac9..13118e0 100644 --- a/src/H5Tpkg.h +++ b/src/H5Tpkg.h @@ -78,6 +78,7 @@ struct H5T_path_t { H5T_t *dst; /*destination datatype ID */ H5T_conv_t func; /*data conversion function */ hbool_t is_hard; /*is it a hard function? */ + hbool_t is_noop; /*is it the noop conversion? */ H5T_stats_t stats; /*statistics for the conversion */ H5T_cdata_t cdata; /*data for this function */ }; |