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 a3b4b459fa issue #139: eliminate quadratic behaviour on input path
Rather than slowly build up a Python string over time, we just store a
deque of chunks (which, in a later commit, will now be around 128KB
each), and track the total buffer size in a separate integer.

The tricky loop is there to ensure the header does not need to be sliced
off the full message (which may be huge, causing yet another spike and
copy), but rather only off the much smaller first 128kb-sized chunk
received.

There is one more problem with this code: the ''.join() causes RAM usage
to temporarily double, but that was true of the old solution too. Shall
wait for bug reports before fixing this, as it gets very ugly very fast.
7 years ago
ansible_mitogen ansible: minor tidy up 7 years ago
docs docs: reorder sections 7 years ago
examples issue #131: test with forks=50 7 years ago
mitogen issue #139: eliminate quadratic behaviour on input path 7 years ago
tests tests: Fix no such option -o running FakeSsh.test_okay() 7 years ago
.gitignore Some gitignore extras 7 years ago
.lgtm.yml compat: ignore LGTM checks on third party 7 years ago
.travis.yml Remove overall build timeout from .travis.yml. 7 years ago
LICENSE Add license text everywhere. 7 years ago
README.md README: move testing bits into tests directory. 7 years ago
dev_requirements.txt tests: Add Tox config for Python 2.6 and 2.7 7 years ago
preamble_size.py docs: fix preamble_size.py after whitelist changes 7 years ago
setup.cfg Initial flake8 configuration. 7 years ago
setup.py setup: Scan project dir to find packages 7 years ago
test.sh tests: Find all *_test.py scripts and run them 7 years ago
tox.ini tests: Add Tox config for Python 2.6 and 2.7 7 years ago

README.md