Merge "Issue #1630 updated chunk size for single dimension chunks." into development
Former-commit-id:14c2a2b201
[formerly6beaa1e8ae
[formerly 010d73f684ec58affd0aeffcef64c6904f909bef]] Former-commit-id:6beaa1e8ae
Former-commit-id:3ad71676b3
This commit is contained in:
commit
0005aa9bce
1 changed files with 6 additions and 1 deletions
|
@ -214,7 +214,12 @@ class H5pyDataStore(IDataStore.IDataStore):
|
|||
|
||||
def __calculateChunk(self, nDims, dataType, storeOp, maxDims):
|
||||
if nDims == 1:
|
||||
chunk = [DEFAULT_CHUNK_SIZE]
|
||||
if dataType != vlen_str_type:
|
||||
sizeOfEntry = numpy.dtype(dataType).itemsize
|
||||
chunkSize = int(FILESYSTEM_BLOCK_SIZE / sizeOfEntry)
|
||||
chunk = [chunkSize]
|
||||
else:
|
||||
chunk = [DEFAULT_CHUNK_SIZE]
|
||||
elif nDims == 2:
|
||||
if storeOp != 'APPEND':
|
||||
chunk = [DEFAULT_CHUNK_SIZE] * 2
|
||||
|
|
Loading…
Add table
Reference in a new issue