I created a chunked array by:
import tables
FILTERS = tables.Filters(complib='lzo', complevel=1)
h5file = tables.openFile('file.h5', mode='w', filters=FILTERS)
x = h5file.createCArray(h5file.root,'chunk_array',tables.Float64Atom(),
shape=(256, 256, 256, 6, 6),
chunkshape = (256, 256, 256, 1, 1))
fill x by some value
h5file.close()
But when I read this file, pytables takes a huge time:
FILTERS = tables.Filters(complib='lzo', complevel=1)
E5F = tables.open_file('file.h5', mode='r', filters=FILTERS)
carray = E5F.root.chunk_array[0, 0, 0]
It's take... 22 seconds!
Did I do something wrong? How to speed up the reading performance in this case?