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,6 +214,11 @@ class H5pyDataStore(IDataStore.IDataStore):
|
||||||
|
|
||||||
def __calculateChunk(self, nDims, dataType, storeOp, maxDims):
|
def __calculateChunk(self, nDims, dataType, storeOp, maxDims):
|
||||||
if nDims == 1:
|
if nDims == 1:
|
||||||
|
if dataType != vlen_str_type:
|
||||||
|
sizeOfEntry = numpy.dtype(dataType).itemsize
|
||||||
|
chunkSize = int(FILESYSTEM_BLOCK_SIZE / sizeOfEntry)
|
||||||
|
chunk = [chunkSize]
|
||||||
|
else:
|
||||||
chunk = [DEFAULT_CHUNK_SIZE]
|
chunk = [DEFAULT_CHUNK_SIZE]
|
||||||
elif nDims == 2:
|
elif nDims == 2:
|
||||||
if storeOp != 'APPEND':
|
if storeOp != 'APPEND':
|
||||||
|
|
Loading…
Add table
Reference in a new issue