tweak ft max numbers and add stats comp

This commit is contained in:
2024-07-12 15:04:49 +02:00
parent eff25cb10b
commit 31253f5708
3 changed files with 33 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ struct ChunkPickerTimer {
struct ChunkPicker {
// max transfers
static constexpr size_t max_tf_info_requests {1};
static constexpr size_t max_tf_chunk_requests {3}; // TODO: dynamic, function/factor of (window(delay*speed)/chunksize)
static constexpr size_t max_tf_chunk_requests {4}; // TODO: dynamic, function/factor of (window(delay*speed)/chunksize)
// TODO: cheaper init? tls rng for deep seeding?
std::minstd_rand _rng{std::random_device{}()};