From fcd84b7469ef13486bbded72bbd0adc21039df7c Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Wed, 15 Oct 2025 12:03:07 +0200 Subject: [PATCH] feature: update default config setting for async.concurrency from 10->64 --- src/zarr/core/config.py | 2 +- tests/test_config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zarr/core/config.py b/src/zarr/core/config.py index 5d463ec79c..fe61ae7955 100644 --- a/src/zarr/core/config.py +++ b/src/zarr/core/config.py @@ -107,7 +107,7 @@ def enable_gpu(self) -> ConfigSet: "order": "C", "write_empty_chunks": False, }, - "async": {"concurrency": 10, "timeout": None}, + "async": {"concurrency": 64, "timeout": None}, "threading": {"max_workers": None}, "json_indent": 2, "codec_pipeline": { diff --git a/tests/test_config.py b/tests/test_config.py index 103cbddbef..150aca7c96 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -54,7 +54,7 @@ def test_config_defaults_set() -> None: "order": "C", "write_empty_chunks": False, }, - "async": {"concurrency": 10, "timeout": None}, + "async": {"concurrency": 64, "timeout": None}, "threading": {"max_workers": None}, "json_indent": 2, "codec_pipeline": { @@ -100,7 +100,7 @@ def test_config_defaults_set() -> None: ] ) assert config.get("array.order") == "C" - assert config.get("async.concurrency") == 10 + assert config.get("async.concurrency") == 64 assert config.get("async.timeout") is None assert config.get("codec_pipeline.batch_size") == 1 assert config.get("json_indent") == 2 @@ -108,7 +108,7 @@ def test_config_defaults_set() -> None: @pytest.mark.parametrize( ("key", "old_val", "new_val"), - [("array.order", "C", "F"), ("async.concurrency", 10, 20), ("json_indent", 2, 0)], + [("array.order", "C", "F"), ("async.concurrency", 64, 128), ("json_indent", 2, 0)], ) def test_config_defaults_can_be_overridden(key: str, old_val: Any, new_val: Any) -> None: assert config.get(key) == old_val