Skip to content

Commit 14b372c

Browse files
authored
feature: update default config setting for async.concurrency from 10->64 (#3526)
1 parent 9f69611 commit 14b372c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/zarr/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def enable_gpu(self) -> ConfigSet:
107107
"order": "C",
108108
"write_empty_chunks": False,
109109
},
110-
"async": {"concurrency": 10, "timeout": None},
110+
"async": {"concurrency": 64, "timeout": None},
111111
"threading": {"max_workers": None},
112112
"json_indent": 2,
113113
"codec_pipeline": {

tests/test_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_config_defaults_set() -> None:
5454
"order": "C",
5555
"write_empty_chunks": False,
5656
},
57-
"async": {"concurrency": 10, "timeout": None},
57+
"async": {"concurrency": 64, "timeout": None},
5858
"threading": {"max_workers": None},
5959
"json_indent": 2,
6060
"codec_pipeline": {
@@ -100,15 +100,15 @@ def test_config_defaults_set() -> None:
100100
]
101101
)
102102
assert config.get("array.order") == "C"
103-
assert config.get("async.concurrency") == 10
103+
assert config.get("async.concurrency") == 64
104104
assert config.get("async.timeout") is None
105105
assert config.get("codec_pipeline.batch_size") == 1
106106
assert config.get("json_indent") == 2
107107

108108

109109
@pytest.mark.parametrize(
110110
("key", "old_val", "new_val"),
111-
[("array.order", "C", "F"), ("async.concurrency", 10, 20), ("json_indent", 2, 0)],
111+
[("array.order", "C", "F"), ("async.concurrency", 64, 128), ("json_indent", 2, 0)],
112112
)
113113
def test_config_defaults_can_be_overridden(key: str, old_val: Any, new_val: Any) -> None:
114114
assert config.get(key) == old_val

0 commit comments

Comments
 (0)