What is the quickest way to open attributes in a callback from
|H5Aiterate2() ?
|It would seem that in the callback function there is the option to
either call
H5Aopen_by_idx() or H5Aopen_by_name() .
Since the callback function receives an /H5A_info_t/ a||
<http://www.hdfgroup.org/HDF5/doc/RM/RM_H5A.html#Annot-OpenByIdx>s
parameter, one might
expect that using its corder member to open the attribute by index would be
faster than going via another name lookup. However, our experiments it is
30x slower to go via the index than via the name.
Is this expected behavior? Are the alternatives?
Werner
--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Center for Computation & Technology at Louisiana State University (CCT/LSU)
2019 Digital Media Center, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5