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
pkg5 module - Speed up installing lists of packages (Check for all packages at once) #54281
Comments
Files identified in the description: If these files are inaccurate, please update the |
Hm, I forgot to add my commit hook to prepend all commit messages with the ticket number. Is that gonna be a problem? |
Files identified in the description: If these files are incorrect, please update the |
!component =lib/ansible/modules/packaging/os/pkg5.py |
Files identified in the description: If these files are incorrect, please update the |
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
SUMMARY
As of right now, pkg5 processes a list of packages to install by filtering the packages by checking for each package if it is installed.
I measured the time it takes checking ten packages doing it this way. On my system it was 5 seconds.
I then measured the time it takes checking once for all ten packages, which was below 1 second.
I propose to change the way the pkg5 module checks when installing packages. I'll add a pull request for this later.
ISSUE TYPE
COMPONENT NAME
pkg5
ADDITIONAL INFORMATION
This would greatly speed up the installation of multiple packages (the more packages the faster it is)
The text was updated successfully, but these errors were encountered: