ansible/lib/ansible
Marius Gedminas 44c94328c8 Speed up execution
`if method in dir(self):` is very inefficient:

- it must construct a list object listing all the object attributes & methods
- it must then perform a O(N) linear scan of that list

Replace it with the idiomatic `if hasattr(self, method):`, which is a
O(1) expected time hash lookup.

Should fix #11981.
2015-08-25 16:07:21 +03:00
..
cli now does not error out when notes are not included in module 2015-08-24 13:24:58 -04:00
compat Making the switch to v2 2015-05-03 21:47:26 -05:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Making the switch to v2 2015-05-03 21:47:26 -05:00
executor Fixes #12076 2015-08-24 19:07:04 -07:00
galaxy draft galaxy cli search 2015-08-22 02:28:27 -04:00
inventory fixed host/group var loading when inventory is a directory 2015-08-23 17:51:47 -04:00
module_utils Revert "Add PowerShell exception handling and turn on strict mode." 2015-08-23 21:09:16 -04:00
modules Submodule pointer update 2015-08-22 12:39:04 -04:00
new_inventory Making the switch to v2 2015-05-03 21:47:26 -05:00
parsing Merge pull request #11765 from ldx/vault_pbkdf2hmac 2015-08-21 11:06:00 -04:00
playbook Speed up execution 2015-08-25 16:07:21 +03:00
plugins remove +1 from size that was cutting off first char of copied files when a recursive dir 2015-08-24 21:10:03 -04:00
template Don't convert nulls to strings. 2015-08-19 18:35:07 -04:00
utils Default listify to converting bare variables again 2015-08-12 10:49:46 -04:00
vars kept vars as alias to hostvars[inventory_hostname] and avoid subtrees into themselves 2015-08-23 17:51:47 -04:00
__init__.py Re-adding submodules after moving things around 2015-05-03 22:30:51 -05:00
constants.py Merge pull request #11880 from bcoca/configurable_squash 2015-08-23 13:32:15 -04:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00