Matt Joiner
|
7096da9f03
|
Minimize allocations and resizing in request computation
|
2021-08-01 22:02:40 +10:00 |
Matt Joiner
|
f50b8fc2fa
|
Fix issue with duplicate preallocated requests
Likely introduced by allowing actual and next request states to differ.
|
2021-06-07 13:01:40 +10:00 |
Matt Joiner
|
1a27e14391
|
Don't always force piece reallocation
The balancing for unforced pieces may not be exactly what we want yet.
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
ad298364aa
|
Add client-level max unverified bytes
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
63b0e42731
|
Get max unverified bytes working
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
307d6d178f
|
Prepare to implement max unverified bytes
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
8e9cb9f2be
|
Do checks for preallocated requests too
Otherwise we reserve requests with the assumption that they can be assigned later, and they actually might not be.
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
9dd85e5bd2
|
Fix non-deterministic test
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
b80e2b08b5
|
Get request rebalancing working optimally!
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
4e9f707aeb
|
Move piece allocation to its own func
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
07ba6e9210
|
New tests and fixes for them
Not complete. There's still a request-stealing balancing issue, but it's functional for now.
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
26837ee73c
|
Add a working request strategy test
|
2021-06-07 13:01:39 +10:00 |
Matt Joiner
|
0d4e566fc0
|
Extract request strategy stuff into a separate module
|
2021-06-07 13:01:39 +10:00 |