On Sep 27, 2012, at 8:43 AM, khm wrote:
> yes I open each level and go to full depth and then close all
> is this inefficient ..should I use absolute paths?
No, this is the preferred access method (holding an object open while
you are accessing its attributes). You are probably just experiencing a lot of
seeks for each object, since you are reading small bits of data from widely
scattered locations in the file. It's possible that you may get better
performance if you increase the metadata block size with
H5Pset_meta_block_size() when creating the file. Try something like 64KiB
(instead of the default 4KiB)
Quincey
> what I do is :
> for each of T1 to T300
> idT1 = open(T1)
> for each of V1 to V60
> idV1 = open (idT1, relative path from T1 to V1)
> readAttribute(idV1, attribute name)
> idD = open(idV1, relative path from V1 to D)
> readAttribute(idD, attribute name)
> close(idD)
> close(idV1)
> end for
> close(idT1)
> end for
>
>
>
>
>
>
>
> --
> View this message in context:
> http://hdf-forum.184993.n3.nabble.com/performance-reading-attributes-attached-to-large-number-of-group-tp4025432p4025434.html
> Sent from the hdf-forum mailing list archive at Nabble.com.
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org