There is a do.call in h5readDataset that takes a subset of an object. This appears to result in a memory copy even if the subset is the entirety of the original object. This patch adds logical to check whether we really need to subset, or can just use the original as is, in which case the mem-copy doesn't occur and things work more quickly.
There is a
do.call
inh5readDataset
that takes a subset of an object. This appears to result in a memory copy even if the subset is the entirety of the original object. This patch adds logical to check whether we really need to subset, or can just use the original as is, in which case the mem-copy doesn't occur and things work more quickly.