summaryrefslogtreecommitdiffstats
path: root/core/io
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-10-19 14:41:29 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-11-07 16:11:04 +0100
commit13357095eef1bf644ae3f878143716f73e2afd2a (patch)
tree4ca80537f849c1c5b77ba70f55a19a55fdeb1eaa /core/io
parentbc8300d20197081bcf7ef0f9495107bf6dbf9acd (diff)
downloadredot-engine-13357095eef1bf644ae3f878143716f73e2afd2a.tar.gz
Increase the default HTTPClient download chunk size to 64 KiB
This improves download speeds at the cost of increased memory usage. This change also effects HTTPRequest automatically. See #32807 and #33862.
Diffstat (limited to 'core/io')
-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);