From 75204210835eb5d93f5d55972e0ae965058a27ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 15 Mar 2016 15:35:18 +0100 Subject: [PATCH] Download in larger chunks --- blender_cloud/pillar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blender_cloud/pillar.py b/blender_cloud/pillar.py index 0289c6a..0adbe5b 100644 --- a/blender_cloud/pillar.py +++ b/blender_cloud/pillar.py @@ -128,7 +128,7 @@ async def get_nodes(project_uuid: str = None, parent_node_uuid: str = None, return children['_items'] -async def download_to_file(url, filename, chunk_size=10 * 1024, *, future: asyncio.Future = None): +async def download_to_file(url, filename, chunk_size=100 * 1024, *, future: asyncio.Future = None): """Downloads a file via HTTP(S) directly to the filesystem.""" # TODO: use the file's ETag header to check whether we need to redownload the file at all.