mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http: avoid heap allocation for torrents with few peers; refactor
This commit is contained in:
parent
91f5289b2b
commit
352194e0bd
5 changed files with 322 additions and 192 deletions
|
|
@ -47,6 +47,8 @@
|
|||
|
||||
* Index peers by packet source IP and provided port instead of by source ip
|
||||
and peer id. This is likely slightly faster.
|
||||
* Avoid a heap allocation for torrents with four or less peers. This can save
|
||||
a lot of memory if many torrents are tracked
|
||||
* Improve announce performance by avoiding having to filter response peers
|
||||
* In announce response statistics, don't include announcing peer
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue