Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ auto_blocksize
Function
auto_blocksize
dask/dataframe/io/csv.py:394–397 ·
view source on GitHub ↗
(total_memory, cpu_count)
Source
from the content-addressed store, hash-verified
392
393
394
def
auto_blocksize(total_memory, cpu_count):
395
memory_factor = 10
396
blocksize = int(total_memory // cpu_count / memory_factor)
397
return
min(blocksize, int(64e6))
398
399
400
def
_infer_block_size():
Callers
4
test_auto_blocksize
Function · 0.90
test_auto_blocksize_max64mb
Function · 0.90
test_auto_blocksize_csv
Function · 0.90
_infer_block_size
Function · 0.85
Calls
1
min
Function · 0.85
Tested by
3
test_auto_blocksize
Function · 0.72
test_auto_blocksize_max64mb
Function · 0.72
test_auto_blocksize_csv
Function · 0.72