mirror of https://github.com/ansible/ansible.git
modules: zypper: Optimize the 'search' subcommand (#37191)
When looking for installed packages we do not need to query repositories since we only care about the rpmdb. As such, we can disable all the repositories operations in order to improve the performance of that step Before this patch, when using 'state: present' in the zypper module, the operation was taking about 12 seconds to complete: time ansible-playbook foo.yml 1>/dev/null real 0m12.614s user 0m10.880s sys 0m0.683s After this patch: time ansible-playbook foo.yml 1>/dev/null real 0m4.193s user 0m2.560s sys 0m0.575s see: https://bugzilla.opensuse.org/show_bug.cgi?id=1084525pull/34033/head
parent
74e79d9f5e
commit
5234b78b5f
Loading…
Reference in New Issue