A few folks have pointed out that the inventory script mechanism calls "--host" for every host, that can't be parallelized, and that's a bit slow for large numbers of hosts, especially when the inventory script doesn't do it's own caching. Previously this resulted in generating a static inventory file being sensible, especially when you have thousands of hosts.
Good news! I've added something for this.
Details in the following commits:
If you've written an external inventory script for Ansible (they live in the "plugins/inventory" directory of the checkout, you may wish to update your inventory script to support the above, as it will offer some nice speedups.
This is however not required, if you don't return any "hostvars" in the "_meta" element, or there is no "_meta" element, everything will continue to work just as before.