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 ci: fix incorrect partition/rpartition from 8a4caea84f 7 years ago
.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 misc: rename to scripts. tab completion!! 7 years ago
tests tests: make soak testing work reliably on vanilla. 7 years ago
.gitignore Add venvs/ to gitignore 7 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml issue #477: travis.yml typo. 7 years ago
LICENSE Add license text everywhere. 8 years ago
README.md Motivational shame badges back in README 7 years ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 7 years ago
preamble_size.py add --dump to preamble_size.py. 8 years ago
run_tests Allow independant control of coverage erase and reporting 7 years ago
setup.cfg Ignore another annoying flake8 message. 8 years ago
setup.py Drop 'alpha' trove classifier 7 years ago
tox.ini Aggregate code coverage data across tox all runs 7 years ago

README.md