Below is a link to a program that illustrates the compounding slowness of H5A_OPEN_IDX and H5A_OPEN_NAME. I am so far unable to reproduce the same problems with H5A_GET_NUM_ATTRS and H5A_GET_NAME; however, I have encountered the same problem with those as well.
https://dl.dropboxusercontent.com/u/42944960/test_h5a_v2.pro
Here is a link to a data file
http://www.rbsp-ect.lanl....D_20130223_v2.1.0.h5
At the bottom of the program, there is a main-level script. Simply change the name of the data file and
IDL> .run test_h5a_v2