diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-10-19 14:41:29 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-11-07 16:11:04 +0100 |
commit | 13357095eef1bf644ae3f878143716f73e2afd2a (patch) | |
tree | 4ca80537f849c1c5b77ba70f55a19a55fdeb1eaa /core | |
parent | bc8300d20197081bcf7ef0f9495107bf6dbf9acd (diff) |
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')
-rw-r--r-- | core/io/http_client.h | 3 |
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); |