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

feature request nala should download pkgs with aria2 #35

Open
osevan opened this issue Jan 17, 2024 · 1 comment
Open

feature request nala should download pkgs with aria2 #35

osevan opened this issue Jan 17, 2024 · 1 comment

Comments

@osevan
Copy link

osevan commented Jan 17, 2024

I dunno why, but apt-fast downloading packages faster than nala, but nala is more intelligent when it comes to pkg formatting and listing and managing for user.

You can consider this maybe as drop in replacements for downloading pkgs.

Like

"nala downloader aria2"
And back default with

"nala downloader default"
Here is apt-fast repo
https://github.com/ilikenwf/apt-fast

And one complain by my side and i saw never open issue correlated with this is:

When we make "nala update", and we have did nala fetch before with 3 or 6 fastest repository servers like 1,2,3,4,5,6
Than,
Nala waiting at cmd nala update untill every repository downloaded successfully - but this cost time and this is unnecessary.

User experience is one of most important part when someone using nala.

So fetching only one repository fast and trying to download with aria2 as example from 6 different repositories would speed up nala update and nala upgrade procedure and user experience.

Thanks and

Best regards

@volitank
Copy link
Owner

nala update actually uses the apt function, so most of that code isn't written by me. It's exactly the same as apt except for the formatting.

I'm fairly certain that apt does download the lists with update in parallel like aria2 would. But the issue is that you have to get ALL the lists from EACH server, so there won't probably be a ton of speedup. I do plan to eventually roll an async downloader for the update command, just not probably soon. After I finish rewriting it in rust. It's not clear with python how to do update like apt does 100%.

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

2 participants