diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-15 16:02:44 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-15 16:02:44 (GMT) |
commit | 7c18329abe3de6a0262914c7aeece57df95d95bd (patch) | |
tree | ea5f203581f1111e806c1927bb338db37e95c144 /src/H5Tconv.c | |
parent | 193fc7a70fe457725a213ab9b0bebcb0df502ec1 (diff) | |
download | hdf5-7c18329abe3de6a0262914c7aeece57df95d95bd.zip hdf5-7c18329abe3de6a0262914c7aeece57df95d95bd.tar.gz hdf5-7c18329abe3de6a0262914c7aeece57df95d95bd.tar.bz2 |
[svn-r8692] Purpose:
Code optimization
Description:
Avoid making copy of default vlen allocation info when default DXPL is
used. Just retarget pointer to point to default info directly.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.10 (sleipnir) w/parallel
Too minor to require h5committest
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r-- | src/H5Tconv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index a8d1e50..1c76a16 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -2426,7 +2426,8 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *buf, void *bkg, hid_t dxpl_id) { - H5T_vlen_alloc_info_t vl_alloc_info;/* VL allocation information */ + H5T_vlen_alloc_info_t _vl_alloc_info; /* VL allocation info buffer */ + H5T_vlen_alloc_info_t *vl_alloc_info=&_vl_alloc_info; /* VL allocation info */ H5T_path_t *tpath; /* Type conversion path */ hbool_t noop_conv=FALSE; /* Flag to indicate a noop conversion */ hbool_t write_to_file=FALSE; /* Flag to indicate writing to file */ @@ -2652,7 +2653,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, } /* end if */ /* Write sequence to destination location */ - if((*(dst->u.vlen.write))(dst->u.vlen.f,dxpl_id,&vl_alloc_info,d,conv_buf, b, (size_t)seq_len, dst_base_size)<0) + if((*(dst->u.vlen.write))(dst->u.vlen.f,dxpl_id,vl_alloc_info,d,conv_buf, b, (size_t)seq_len, dst_base_size)<0) HGOTO_ERROR(H5E_DATATYPE, H5E_WRITEERROR, FAIL, "can't write VL data"); if(!noop_conv) { |