summaryrefslogtreecommitdiff
path: root/lib/ansible/errors.py
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-02-17 13:24:46 -0800
committerToshio Kuratomi <toshio@fedoraproject.org>2015-02-17 13:24:46 -0800
commit68e86de26fd5eac8a0a177528d7ffec0ed78ce4f (patch)
treeefc22f2ccae64034ff27d762b2d8bc82b4322c84 /lib/ansible/errors.py
parent50379d59ba89ba6aa1efed354432d1566e12b0aa (diff)
downloadansible-optimize-plugin-loader-10165.tar.gz
Optimize the plugin loader.optimize-plugin-loader-10165
We have been caching the paths to the plugins but before we would only cache the specific plugin that we were looking for. This meant that we might search through all of the plugin directories before finding the specific module we were interested in. The next plugin we needed we might again search through all the plugin directories before finding the plugin we wanted. This new code will cache all the potential plugins in each directory searched. For a play that only uses one plugin we'll only search through directories until we encounter the directory that has the proper plugin. For a large playbook with many plugins used we'll search through each directory at most once each. This should alleviate #10165
Diffstat (limited to 'lib/ansible/errors.py')
0 files changed, 0 insertions, 0 deletions