announce handler: keep mutable access to torrent map less time

This commit is contained in:
Joakim Frostegård 2020-04-08 13:32:18 +02:00
parent b40d205ccd
commit 910accad31
3 changed files with 29 additions and 28 deletions

View file

@ -17,9 +17,6 @@
* Performance
* cpu-target=native good?
* mialloc good?
* TorrentMap: mutable access only to insert peer, then drop reference
and get read-only access to gather peers. This could speed up
multi-threaded performance a lot
* Use less bytes from PeerId for hashing? Would need to implement
"faulty" PartialEq too (on PeerMapKey, which would be OK)
* bittorrent_udp