We were talking about refactoring the torrents map in the Tracker
struct to reduce the amount of write locks needed on the entire torrents map. This would theoretically improve torrent announce performance when you have a lot of torrents being updated at the same time.
Refactor:
torrents: RwLock<std::collections::BTreeMap<InfoHash, torrent::Entry>>,
To:
torrents: RwLock<std::collections::BTreeMap<InfoHash, Arc<Mutex<torrent::Entry>>>>,