benchmark byte conversion as well; bittorrent_udp: use buffers

This commit is contained in:
Joakim Frostegård 2020-04-07 19:49:29 +02:00
parent 51590a3d6c
commit a99688a5a2
11 changed files with 231 additions and 106 deletions

View file

@ -1,2 +1,5 @@
pub const PARETO_SHAPE: f64 = 0.1;
pub const NUM_INFO_HASHES: usize = 10_000;
pub const NUM_INFO_HASHES: usize = 10_000;
/// Save memory by not allocating more per request
pub const MAX_REQUEST_BYTES: usize = 256;