diff options
| author | Dan Engelbrecht <[email protected]> | 2025-04-10 20:06:03 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2025-04-10 20:06:03 +0200 |
| commit | 9def4d7ed8a627a258b2a687d953c47ed0488006 (patch) | |
| tree | ba548e67e69c7c0a324373caa0c7f348a6978ece /src/zenhttp | |
| parent | changelog (diff) | |
| download | zen-de/disk-io-optimizations.tar.xz zen-de/disk-io-optimizations.zip | |
prime temp file sizes and order request based on first write positionde/disk-io-optimizations
Diffstat (limited to 'src/zenhttp')
| -rw-r--r-- | src/zenhttp/httpclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp index 763f3262a..6a067ff50 100644 --- a/src/zenhttp/httpclient.cpp +++ b/src/zenhttp/httpclient.cpp @@ -220,7 +220,7 @@ namespace detail { { ZEN_TRACE_CPU("TempPayloadFile::AppendData"); ZEN_ASSERT(m_FileHandle != nullptr); - const uint64_t MaxChunkSize = 2u * 1024 * 1024 * 1024; + const uint64_t MaxChunkSize = 2u * 1024u * 1024u; while (Size) { @@ -1206,7 +1206,7 @@ HttpClient::Download(std::string_view Url, const std::filesystem::path& TempFold std::optional<size_t> ContentLength = ParseInt<size_t>(Header.second); if (ContentLength.has_value()) { - if (ContentLength.value() > 1024 * 1024) + if (ContentLength.value() > 4u * 1024u * 1024u) { PayloadFile = std::make_unique<detail::TempPayloadFile>(); std::error_code Ec = PayloadFile->Open(TempFolderPath); |