How to make “as greedy as possible” client? Ow how to make high-speed streaming? #741
-
Which download everything as fast as it can |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 22 replies
-
I found something #150 (comment) |
Beta Was this translation helpful? Give feedback.
-
The current way to do this would be set a very large MaxUnverifiedBytes for the Client and Torrent (experiment with this for performance reasons), and call Torrent.DownloadAll. This should cause the client to download as much as it can from all connections without overlap until endgame mode. |
Beta Was this translation helpful? Give feedback.
-
but MaxUnverifiedBytes=MaxInt - behave same as default value MaxUnverifiedBytes=0 - means unlimited. |
Beta Was this translation helpful? Give feedback.
-
Just FYI: we have 200gb of torrents (80 small files, and 20 large). We downloading by internet (not by private network). For now - most greedy way we found is "download files 1-by-1" sequentially. (we didn't experiment yet with |
Beta Was this translation helpful? Give feedback.
-
You'll have to clarify what your goal is: Do you want to get all the data as quickly as possible with no care for what order it arrives in, or do you want to stream the entire torrent, file-by-file? Could you maybe explain what you're trying to do, those use-cases are quite different. |
Beta Was this translation helpful? Give feedback.
-
Goal:
Problem:
|
Beta Was this translation helpful? Give feedback.
-
Some pprof wend do .DownloadAll() on list of files (200gb of total size). |
Beta Was this translation helpful? Give feedback.
-
@AskAlexSharov there were massive performance improvements addressing this exact problem in 43c680e. Released in v1.54.1. |
Beta Was this translation helpful? Give feedback.
@AskAlexSharov there were massive performance improvements addressing this exact problem in 43c680e. Released in v1.54.1.