2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Beta version 1.5.17: Improve large file streaming.

Allow header for streaming up to 8 MB.
This commit is contained in:
John Preston
2019-03-13 20:55:57 +04:00
parent b113696fe6
commit 2152fe6a79

View File

@@ -19,7 +19,7 @@ namespace {
constexpr auto kPartSize = Loader::kPartSize;
constexpr auto kPartsInSlice = 64;
constexpr auto kInSlice = kPartsInSlice * kPartSize;
constexpr auto kMaxPartsInHeader = 16;
constexpr auto kMaxPartsInHeader = 64;
constexpr auto kMaxOnlyInHeader = 80 * kPartSize;
constexpr auto kPartsOutsideFirstSliceGood = 8;
constexpr auto kSlicesInMemory = 2;