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

limiting prefetch download speed #55

Open
christoph-k opened this issue Jan 3, 2023 · 3 comments
Open

limiting prefetch download speed #55

christoph-k opened this issue Jan 3, 2023 · 3 comments

Comments

@christoph-k
Copy link

Pacoloco is very useful especially for people with limited bandwidth.
In case you want to install a new package you are probably fine with the download taking up all the bandwidth there is.
For prefetching though it would be really nice to limit the speed in order to prevent a congested connection.

@anatol
Copy link
Owner

anatol commented Jan 4, 2023

cc @Focshole

@Focshole
Copy link
Contributor

Focshole commented Jan 4, 2023

Fully agree with you. Right now I am not aware of a way to limit network traffic, maybe with the download reimplementation (issue #7) it will be possible.
Right now as a workaround I may suggest you to do the prefetching when your network is not being actively used (e.g. at late night)

@anatol
Copy link
Owner

anatol commented Jan 4, 2023

One option would be to use some rate-limiting library e.g. https://github.com/juju/ratelimit

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

No branches or pull requests

3 participants