You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/docs
Alex Willmer 83b6cdb616 ansible_mitogen: Speedup startup by not sending `__main__`
On my laptop his reduces the time to execute `ansible -mping ...` by approx
300 ms with `strategy=mitogen_linear`.

Until this commit Mitogen was unnecessarily sending large chunks of Ansible
from the controller to targets, due to `__main__` being identified as a
related module of `ansible.module_utils.basic`, and resolving to something
within `ansible.cli...`.

On Ansible target hosts executing any Ansible Module `__main__` is imported by
`ansible.module_utils.basic` as part of Ansible's module delivery mechanism.
When `mitogen.master.ModuleResponder` (on the controller) processes the
request for `ansible.module_utils.basic` from the target, it scans
`ansible.module_utils.basic` for related imports and finds `__main__`. However
`__main__` on the controller is not the same module as `__main__` on the
target. On the controller it is a module in `ansible.cli...` that implements
one of the ansible commands (e.g. `ansible`, `ansible-playbook`).
1 week ago
..
_static docs: remove a little more top margin wastage 7 years ago
_templates docs: Remove piwik analytics hooks from website 1 year ago
images issue #505: docs: add new detail graph for one scenario. 7 years ago
.gitignore docs: fix intensely annoying _prefix, 2 years later. 8 years ago
Makefile docs: get rid of autobuild remnant 7 years ago
ansible_detailed.rst Python 3.14 support 3 months ago
api.rst Add podman connection support 4 years ago
changelog.rst ansible_mitogen: Speedup startup by not sending `__main__` 1 week ago
conf.py docs: Fix website download link when there is a pre-release 6 months ago
contributors.rst docs: Add changelog, credits for connection_loader__get fixes 11 months ago
domainrefs.py docs: add domainrefs plugin to make link aliases everywhere \o/ 6 years ago
examples.rst Replace os.system() with subprocess.check_call() 4 years ago
getting_started.rst Fix for sample in doc 6 years ago
howitworks.rst mitogen: Send first stage parameters as argv (796 bytes -> 822) 4 weeks ago
index.rst docs: Update external URLs (e.g. dw/mitogen -> mitogen-hq/mitogen) 2 years ago
internals.rst Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 6 years ago
netlify.toml docs: Fix "No module named 'imghdr'" when building website 11 months ago
pickle-substitutes.ods docs: First round of Pickle-likes survey 8 years ago
requirements.txt docs: Fix generation of static website 2 years ago
services.rst issue #589: ensure real FileService/PushFileService are in the docs 7 years ago
toc.rst docs: reorder chapters 6 years ago