summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-07 16:38:28 +0100
committerGitHub <noreply@github.com>2020-11-07 16:38:28 +0100
commit709964849fdc0c2cb34e5e851df71a66ee28ba1e (patch)
tree799d8c06cafa52d70dcc376845c796f49e18bfc9 /core
parent329d2c1ced685a107b1c27e67b212b5620968a0a (diff)
parent13357095eef1bf644ae3f878143716f73e2afd2a (diff)
Merge pull request #42896 from Calinou/httprequest-increase-chunk-size
Increase the default HTTPClient download chunk size to 64 KiB
Diffstat (limited to 'core')
-rw-r--r--core/io/http_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/http_client.h b/core/io/http_client.h
index 1dc1f3d76a..a233d2d038 100644
--- a/core/io/http_client.h
+++ b/core/io/http_client.h
@@ -182,7 +182,8 @@ private:
int response_num = 0;
Vector<String> response_headers;
- int read_chunk_size = 4096;
+ // 64 KiB by default (favors fast download speeds at the cost of memory usage).
+ int read_chunk_size = 65536;
Error _get_http_data(uint8_t *p_buffer, int p_bytes, int &r_received);