#repository #bittorrent #library #torrent #p2p #rw-lock

torrust-tracker-torrent-repository

A library that provides a repository of torrents files and their peers

1 stable release

3.0.0 Oct 3, 2024

#1917 in Network programming

Download history 151/week @ 2024-09-29 14/week @ 2024-10-06

165 downloads per month
Used in torrust-tracker

AGPL-3.0-only

190KB
4K SLoC

Torrust Tracker Torrent Repository

A library to provide a torrent repository to the Torrust Tracker.

Benchmarking

cargo bench -p torrust-tracker-torrent-repository

Example partial output:

     Running benches/repository_benchmark.rs (target/release/deps/repository_benchmark-a9b0013c8d09c3c3)
add_one_torrent/RwLockStd
                        time:   [63.057 ns 63.242 ns 63.506 ns]
Found 12 outliers among 100 measurements (12.00%)
  2 (2.00%) low severe
  2 (2.00%) low mild
  2 (2.00%) high mild
  6 (6.00%) high severe
add_one_torrent/RwLockStdMutexStd
                        time:   [62.505 ns 63.077 ns 63.817 ns]

Documentation

Crate documentation.

License

The project is licensed under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE.

Dependencies

~15–28MB
~433K SLoC