HDF5DOTNET Dense Attribute Storage

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for
storing meta data about data sets. When I load an HDF5 file, I want to
read all the data set attributes for all the data sets. Unfortunately this
is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in place
of attributes, but Im trying to avoid that as I like my current H5 file
structure.

I want to switch to dense storage of attributes to speed up this process.
However, Im struggling to understand how to do this, specifically with
HDF5DOTNET.

*HDF5 Questions (not related to HDF5DOTNET):*
   1. I understand that H5Pset_attr_phase_change property can be used with
creation of H5Files. Is this the general method for using dense attribute
storage or is there a more explicit method to use when creating attributes
(or datasets/groups)?

*HDF5DOTNET Questions:*
  1. I could not find any any wrapper functions for H5Pset_attr_phase_change
in HDF5DOTNET. Is there an equivalent function or some method for ensure
dense attribute storage which is currently supported.

Thanks,

- Nick

Hi
I want to be removed from this list and not receive anymore emails from
Hdf-forum
Thanks
Elizabeth

···

On Wednesday, 3 February 2016, Nick Dodds <nick1787@gmail.com> wrote:

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for
storing meta data about data sets. When I load an HDF5 file, I want to
read all the data set attributes for all the data sets. Unfortunately this
is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in
place of attributes, but Im trying to avoid that as I like my current H5
file structure.

I want to switch to dense storage of attributes to speed up this process.
However, Im struggling to understand how to do this, specifically with
HDF5DOTNET.

*HDF5 Questions (not related to HDF5DOTNET):*
   1. I understand that H5Pset_attr_phase_change property can be used
with creation of H5Files. Is this the general method for using dense
attribute storage or is there a more explicit method to use when creating
attributes (or datasets/groups)?

*HDF5DOTNET Questions:*
  1. I could not find any any wrapper functions for H5Pset_attr_phase_change
in HDF5DOTNET. Is there an equivalent function or some method for ensure
dense attribute storage which is currently supported.

Thanks,

- Nick

Nick, how are you? In order to take advantage of dense attribute storage you must
use the latest version of the file format when creating objects. Use H5Pset_libver_bounds
with a libver_low of H5F_LIBVER_18 (or H5F_LIBVER_LATEST).
Neither method (H5Pset_libver_bounds, H5Pset_attr_phase_change) was included in
HDF5DotNet. However, it will be included in the forthcoming HDF.PInvoke set of bindings.

Best regards,
Gerd

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Nick Dodds
Sent: Wednesday, February 3, 2016 8:39 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] HDF5DOTNET Dense Attribute Storage

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for storing meta data about data sets. When I load an HDF5 file, I want to read all the data set attributes for all the data sets. Unfortunately this is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in place of attributes, but Im trying to avoid that as I like my current H5 file structure.

I want to switch to dense storage of attributes to speed up this process. However, Im struggling to understand how to do this, specifically with HDF5DOTNET.

HDF5 Questions (not related to HDF5DOTNET):
   1. I understand that H5Pset_attr_phase_change property can be used with creation of H5Files. Is this the general method for using dense attribute storage or is there a more explicit method to use when creating attributes (or datasets/groups)?

HDF5DOTNET Questions:
  1. I could not find any any wrapper functions for H5Pset_attr_phase_change in HDF5DOTNET. Is there an equivalent function or some method for ensure dense attribute storage which is currently supported.

Thanks,

- Nick

The HDF5.NET library is far from complete. But if a function you need is not there, you can add it and recompile. The existing functions are templates to whatever functionality you need to add.

S

···

From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of Nick Dodds
Sent: Wednesday, February 03, 2016 9:39 AM
To: hdf-forum@lists.hdfgroup.org
Subject: [Hdf-forum] HDF5DOTNET Dense Attribute Storage

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for storing meta data about data sets. When I load an HDF5 file, I want to read all the data set attributes for all the data sets. Unfortunately this is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in place of attributes, but Im trying to avoid that as I like my current H5 file structure.

I want to switch to dense storage of attributes to speed up this process. However, Im struggling to understand how to do this, specifically with HDF5DOTNET.

HDF5 Questions (not related to HDF5DOTNET):
   1. I understand that H5Pset_attr_phase_change property can be used with creation of H5Files. Is this the general method for using dense attribute storage or is there a more explicit method to use when creating attributes (or datasets/groups)?

HDF5DOTNET Questions:
  1. I could not find any any wrapper functions for H5Pset_attr_phase_change in HDF5DOTNET. Is there an equivalent function or some method for ensure dense attribute storage which is currently supported.

Thanks,

- Nick

There is a link at the bottom of every e-mail from the list via which you
can remove yourself. You probably have to request a password reset first
and then log in and delete your subscription.

···

On Wed, Feb 3, 2016 at 6:44 AM, Elisheva Strazzeri < elisabetta.strazz@gmail.com> wrote:

Hi
I want to be removed from this list and not receive anymore emails from
Hdf-forum
Thanks
Elizabeth

On Wednesday, 3 February 2016, Nick Dodds <nick1787@gmail.com> wrote:

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for
storing meta data about data sets. When I load an HDF5 file, I want to
read all the data set attributes for all the data sets. Unfortunately this
is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in
place of attributes, but Im trying to avoid that as I like my current H5
file structure.

I want to switch to dense storage of attributes to speed up this
process. However, Im struggling to understand how to do this, specifically
with HDF5DOTNET.

*HDF5 Questions (not related to HDF5DOTNET):*
   1. I understand that H5Pset_attr_phase_change property can be used
with creation of H5Files. Is this the general method for using dense
attribute storage or is there a more explicit method to use when creating
attributes (or datasets/groups)?

*HDF5DOTNET Questions:*
  1. I could not find any any wrapper functions for H5Pset_attr_phase_change
in HDF5DOTNET. Is there an equivalent function or some method for ensure
dense attribute storage which is currently supported.

Thanks,

- Nick

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Gerd,

Thanks so much for getting back with me. Looks like Ill be re-writing some
of my code to avoid using attributes for the portion of the code which is
running slow.

-Nick

- Nick

···

On Wed, Feb 3, 2016 at 10:40 PM, Gerd Heber <gheber@hdfgroup.org> wrote:

Nick, how are you? In order to take advantage of dense attribute storage
you must

use the latest version of the file format when creating objects. Use
H5Pset_libver_bounds

with a libver_low of H5F_LIBVER_18 (or H5F_LIBVER_LATEST).

Neither method (H5Pset_libver_bounds, H5Pset_attr_phase_change) was
included in

HDF5DotNet. However, it will be included in the forthcoming HDF.PInvoke
set of bindings.

Best regards,

Gerd

*From:* Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] *On
Behalf Of *Nick Dodds
*Sent:* Wednesday, February 3, 2016 8:39 AM
*To:* hdf-forum@lists.hdfgroup.org
*Subject:* [Hdf-forum] HDF5DOTNET Dense Attribute Storage

Hello,

Ive created a project using HDF5DOTNET and rely heavily on attributes for
storing meta data about data sets. When I load an HDF5 file, I want to
read all the data set attributes for all the data sets. Unfortunately this
is very slow when I have a large number of data sets.

Firstly, I understand that I could re-write my code using datasets in
place of attributes, but Im trying to avoid that as I like my current H5
file structure.

I want to switch to dense storage of attributes to speed up this process.
However, Im struggling to understand how to do this, specifically with
HDF5DOTNET.

*HDF5 Questions (not related to HDF5DOTNET):*

   1. I understand that H5Pset_attr_phase_change property can be used
with creation of H5Files. Is this the general method for using dense
attribute storage or is there a more explicit method to use when creating
attributes (or datasets/groups)?

*HDF5DOTNET Questions:*

  1. I could not find any any wrapper functions
for H5Pset_attr_phase_change in HDF5DOTNET. Is there an equivalent
function or some method for ensure dense attribute storage which is
currently supported.

Thanks,

- Nick

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5