From bbb6df28ff4fa8931ae00b207d49044d8c17d365 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 19 Nov 2020 12:09:03 +0100 Subject: [PATCH] Download files iterating on bigger chunks --- bugbug/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugbug/utils.py b/bugbug/utils.py index ecacbfb6..21d7d612 100644 --- a/bugbug/utils.py +++ b/bugbug/utils.py @@ -193,7 +193,7 @@ def download_check_etag(url, path=None): r.raise_for_status() with open(path, "wb") as f: - for chunk in r.iter_content(chunk_size=4096): + for chunk in r.iter_content(chunk_size=1048576): f.write(chunk) with open(f"{path}.etag", "w") as f: