b2-sdk-python icon indicating copy to clipboard operation
b2-sdk-python copied to clipboard

Use ParallelDownloader for smaller files too

Open ppolewicz opened this issue 4 years ago • 2 comments

ppolewicz avatar Sep 17 '22 14:09 ppolewicz

This mixes well with max part size selector implemented by Alex recently. With both his and this PR you can force a single part and still use ParallelDownloader to achieve higher single stream performance than what you'd get if there was no buffer between getting data from the cloud and writing it on the drive. ParallelDownloader will have a separate thread for retrieval and write(), so both of those can run concurrently (both release GIL)

ppolewicz avatar Sep 17 '22 18:09 ppolewicz

I think we might want to wait for one more feature to land as it's going to add a new downloader. Then we can figure out how to do a new router for the downloaders.

ppolewicz avatar Sep 20 '22 03:09 ppolewicz

Superseded by #482

mjurbanski-reef avatar Mar 25 '24 11:03 mjurbanski-reef