Commit Graph

168 Commits (41b27d969c3dbbd5507d6ea85073dc72c0c77cdf)

Author SHA1 Message Date
David Wilson 7fb0fa3872 examples: rename playbooks for clarity. 7 years ago
David Wilson 1ea97ea68f docs: add stats tracking 7 years ago
David Wilson 6658596c38 docs: initial Ansible extension docs. 7 years ago
David Wilson 7e8ef4223c ssh: enable compression by default
Using the same test as in 7af97c0365,
transmitted wire bytes drops from 135,531 to 133,071 (-1.81%), while
received drops from 21,073 to 14,775 (-30%).

Combined, both changes shave 13,914 bytes (-8.6%) off aggregate
bandwidth usage.

Make it configurable as compression hurts in some scenarios.
7 years ago
David Wilson 7af97c0365 importer: drop redundant prefix from pkg_present
For the 52 submodules of ansible.modules.system, this produced a 1602
byte pkg_present list. After stripping it becomes 406 bytes, and the
entire LOAD_MODULE size drops from 1988 bytes to 792 bytes (-60%).

For the 68 submodules of ansible.module_utils, 1902 bytes pkg_present
becomes 474 bytes (-75%), and LOAD_MODULE size drops from 2867 bytes to
1439 bytes (-49%).

In a simple test running Ansible's "setup" module followed by its "apt"
module, wire bytes sent drops from 140,357 to 135,531 (-3.4%).
7 years ago
David Wilson 536fe9afb8 master: Select.all() sugar 7 years ago
David Wilson af04f24c95 docs: fix Select() example for new style API. 7 years ago
dw 3e20b5036f
Merge pull request #79 from moreati/doc-router-route
Fix indentation of Router.route anchor
7 years ago
dw 9d1859796c
Merge pull request #83 from moreati/msg-in-a-jar
Fix lingering references to mitogen.core.Receiver.get_data()
7 years ago
Alex Willmer 3bf204f8d6 docs: Fix out of date get_data() snippets
As of adc8fe3aed Receiver objects do not
have a get_data() method and Receiver.get() does not unpickle the
message.
7 years ago
David Wilson a6324aaeb1 Latch v2: combined queue + one self-pipe-per-thread
Turns out it is far too easy to burn through available file descriptors,
so try something else: self-pipes are per thread, and only temporarily
associated with a Lack that wishes to sleep.

Reduce pointless locking by giving Latch its own queue, and removing
Queue.Queue() use in some places.

Temporarily undo merging of of Waker and Latch, let's do this one step
at a time.
7 years ago
Alex Willmer 631c97b143 Fix indentation of Router.route anchor 7 years ago
David Wilson dadee5dc05 docs: add Message documentation 7 years ago
David Wilson 8ef87bea6a select: clean up API. 7 years ago
David Wilson c9affbaf50 core: add auth_id field. 7 years ago
David Wilson ddf4a21bac Add mitogen.main() decorator mainly for docs and demo use. 7 years ago
David Wilson 6897227a31 utils: support log_to_file(usec=True) 7 years ago
David Wilson b194e46d35 docs: reorder sections 7 years ago
David Wilson 1acb068fb6 docs: remove obsolete warning 7 years ago
David Wilson 76e4683ef1 docs: sphinx-autobuild default target. 7 years ago
David Wilson 3f86347edc docs: fix typo 7 years ago
David Wilson e930099755 docs: vastly simplify importer concurrency docs 7 years ago
David Wilson 716637a20c importer: Beginnings of howitworks section. 7 years ago
David Wilson baf1d0e13d Tidy up and correct the new example 7 years ago
David Wilson 396c4f3cf2 Add shell replacement example. 7 years ago
David Wilson 549942344e docs: Fix function name. 7 years ago
David Wilson 22c1594f04 Simplify the API, make Broker optional and auto-shutdown on main thread exit. 7 years ago
Alex Willmer 7473addfd2 Replace all calls to file() with open()
Although these are synonyms in Python 2.x, when using MyPy to typecheck
code use of file() causes spurious errors.

This commit also serves as one small step to Python 3.x compatibility,
since 3.x removes the file() builtin.
7 years ago
David Wilson 36300b9fe6 docs: convert paragraph to footnote. 7 years ago
David Wilson 255656ef50 issue #49: update howitworks.rst for command line change 7 years ago
David Wilson dcea7ac616 docs: waiting on multiple calls 7 years ago
David Wilson 8f42a58281 docs: move Router.route() into Sphinx. 7 years ago
David Wilson b43cd31d59 docs: Add warning to preloading section. 7 years ago
David Wilson 48096ab033 docs: move Broker docstrings into Sphinx. 7 years ago
David Wilson 7eb81a1694 docs: more getting started guide 7 years ago
David Wilson d800b684ef Merge branch 'module-preloading'
Not much point in keeping the docs changes separate.
7 years ago
David Wilson 0b141ade62 docs: getting started 7 years ago
David Wilson 4632c73a72 More. 7 years ago
David Wilson d00821be89 docs: way more appropriate image 7 years ago
David Wilson 6792893666 docs: more getting started 7 years ago
David Wilson 2d6b004fa0 docs: Getting started tidyups 7 years ago
David Wilson dddaa29526 docs: Get started on Getting Started 7 years ago
David Wilson dc6ed860f7 docs: fix reference to with: 7 years ago
David Wilson 320191cae2 docs: move fakessh docs into Sphinx. 7 years ago
David Wilson 2830304407 docs: move mitogen.utils docs to Sphinx. 7 years ago
David Wilson b56f848cc6 docs: fix decorator types. 7 years ago
David Wilson 2bda6ee70c docs: better io_op doc, move Side docs to Sphinx. 7 years ago
David Wilson 15492adabc docs: move BasicStream docs into Sphinx. 7 years ago
David Wilson 8e69838b44 docs: annother barriage of cross-reference fixes. 7 years ago
David Wilson b88e68df72 docs: Fix up tons of references, document trust chain 7 years ago