Mirror of mitogen
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.
 
 
 
Go to file
David Wilson 9adc38d8ec parent: pre-cache bootstrap if possible.
When the interpreter is modern enough, use zlib.compressobj() to
pre-compress the unchanging parts of the bootstrap once, then use
compressobj.copy() to append just the context's config during stream
construction.

Before: 100 loops, best of 3: 5.81 msec per loop
After: 10000 loops, best of 3: 35.9 usec per loop

With 100 targets this is enough to knock 6 seconds off startup, at 500
targets it becomes half a minute.

Test 'program':
        python -m timeit -s '
                import mitogen.parent as p;
                import mitogen.master as m;
                r=m.Router();
                s=p.Stream(r, 0, max_message_size=1);
                r.broker.shutdown()'\
                \
                's.get_preamble()'
7 years ago
.ci
.github github: tweak issue template. 7 years ago
ansible_mitogen ansible: add mitogen_ssh_compression variable. 7 years ago
docs docs: update Changelog. 7 years ago
examples core: many docstring updates and an example substitute for Channel 7 years ago
mitogen parent: pre-cache bootstrap if possible. 7 years ago
scripts
tests tests: make soak testing work reliably on vanilla. 7 years ago
.gitignore
.lgtm.yml
.travis.yml
LICENSE
README.md
dev_requirements.txt
preamble_size.py
run_tests Allow independant control of coverage erase and reporting 7 years ago
setup.cfg
setup.py
tox.ini Aggregate code coverage data across tox all runs 7 years ago

README.md