Commit Graph

16 Commits (56b13be718b95e947094a117f1e3494347dbb453)

Author SHA1 Message Date
David Wilson 1b03a79107 docs: mitogen.core.Latch docs 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 ddf4a21bac Add mitogen.main() decorator mainly for docs and demo use. 7 years ago
David Wilson 716637a20c importer: Beginnings of howitworks section. 7 years ago
David Wilson d800b684ef Merge branch 'module-preloading'
Not much point in keeping the docs changes separate.
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 b88e68df72 docs: Fix up tons of references, document trust chain 7 years ago
David Wilson 88c82aff6a docs: Fix index generation everywhere. 7 years ago
David Wilson 1ed8bb6924 Document a bunch of mitogen.master and move more docstrings into Sphinx. 7 years ago
David Wilson 535ffc25b7 Move more docstrings out of core.py. 7 years ago
David Wilson 446e956e8f Rename package. 7 years ago
David Wilson 7634b4c31c Add ProcessMonitor class 7 years ago
David Wilson ff903b1bcd Rearrange docs, split connection methods into submodules. 8 years ago
David Wilson a26a6bd66e More docs. 8 years ago
David Wilson fea12a6030 Many updates: graceful shutdown, docs, threading
* Start splitting docs up into internals.rst / api.rst
* Docs for lots more of econtext.core.
* Get rid of _update_stream() and has_output(), replace with individual
  functions called as state changes.
* Add Broker.on_thread() and remove Stream._lock: simply call
  on_thread() to ensure buffer management is linearized.
* Rename read_side/write_side to receive_side/transmit_side like event
  handler names.
* Clean up some more repr / debug logs.
* Move handle cleanup to Context.on_shutdown where it belongs.
* Make wake() a noop when called from broker thread.
* Replace graceful_count crap with Side.graceful attribute, add
  Broker.keep_alive() to check whether any registered readers want to
  be kept alive for graceful shutdown() or any child contexts with a
  connected stream exist.
* Make master.Broker timeout slightly longer than slave broker.
* Add generic on_thread() to allow running code on the IO thread.
8 years ago