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.
Minify-safe files are marked with a magical "# !mitogen: minify_safe"
comment anywhere in the file, which activates the minifier. The result
is naturally cached by ModuleResponder, therefore lru_cache is gone too.
Given:
import os, mitogen
@mitogen.main()
def main(router):
c = router.ssh(hostname='k3')
c.call(os.getpid)
router.sudo(via=c)
SSH footprint drops from 56.2 KiB to 42.75 KiB (-23.9%)
Ansible "shell: hostname" drops 149.26 KiB to 117.42 KiB (-21.3%)
|
7 years ago | |
|---|---|---|
| .. | ||
| compat/simplejson | 7 years ago | |
| plugins | 7 years ago | |
| __init__.py | 8 years ago | |
| affinity.py | 7 years ago | |
| connection.py | 7 years ago | |
| loaders.py | 7 years ago | |
| logging.py | 7 years ago | |
| mixins.py | 7 years ago | |
| module_finder.py | 8 years ago | |
| parsing.py | 8 years ago | |
| planner.py | 7 years ago | |
| process.py | 7 years ago | |
| runner.py | 7 years ago | |
| services.py | 7 years ago | |
| strategy.py | 7 years ago | |
| target.py | 7 years ago | |
| transport_config.py | 7 years ago | |