mirror of https://github.com/ansible/ansible.git
Faster host removal from a handler (#84091)
In ``Handler.notify_host`` we ensure that ``Handler.notified_hosts`` can contain particular host at most once. Therefore for removing a host it should be faster to use ``list.remove`` which removes the first item in the list, as opposed to using list comprehension removing all such items.pull/84133/head
parent
4f6276d72d
commit
42e2f09b97
Loading…
Reference in New Issue