Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] - Is it support download large file? #47

Closed
thewon86 opened this issue Jun 26, 2023 · 2 comments
Closed

[QUESTION] - Is it support download large file? #47

thewon86 opened this issue Jun 26, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@thewon86
Copy link

Hi, How meny memory it takes when retr a large file(more than 4GiB)?

@thewon86 thewon86 added the question Further information is requested label Jun 26, 2023
@veeso
Copy link
Owner

veeso commented Jun 26, 2023

unless you're using retr_as_buffer which stores the buffer in memory, it really depends on your reader. So for example, if you use retr and inside of the closure you use std::io::copy it's not going to consume much memory, since it's continuously reading from the stream and directly copying the content into the destination writer.

@thewon86
Copy link
Author

Got it, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants