From c86f0d033335296474a00e7cf22eb44791c9bd5e Mon Sep 17 00:00:00 2001 From: stickz Date: Sun, 21 Nov 2021 23:12:50 -0500 Subject: [PATCH] Don't force the trackers to scrape when rTorrent first starts rTorrent will do this gradually, so we can start connecting to peers right away. This patch shaves approximately 5 minutes off the start time with thousands of torrents. --- src/core/download_factory.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/download_factory.cc b/src/core/download_factory.cc index e096140c..355a1431 100644 --- a/src/core/download_factory.cc +++ b/src/core/download_factory.cc @@ -275,6 +275,9 @@ DownloadFactory::receive_success() { if (!rpc::call_command_value("trackers.use_udp")) download->enable_udp_trackers(false); + + // Don't force the trackers to scrape when rTorrent first starts + download->set_resume_flags(torrent::Download::start_skip_tracker); // Check first if we already have these values set in the session // torrent, so that it is safe to change the values.