Alex Willmer

Results 363 comments of Alex Willmer

Initial thoughts [Benchmark](https://github.com/moreati/pickle-fuzz/commit/e266c104a3004e821e70749e72ce03685eafa5eb) - Encoding many small objects takes roughly 10 times longer than cpickle. Which is roughly par for the course with every pure Python serializer I've tried. -...

> I forgot about pencode! It preserves serialization of cyclical structures, handles long ints and is already the right size. pencode supports Python 2.7 (I mistakenly thought not), adding Python...

Very alpha pickle protocol 4 backport https://github.com/moreati/pickle4

> Very alpha pickle protocol 4 backport https://github.com/moreati/pickle4 Fixed up the pickle4 backport enough to [benchmark on Python 2.7 and 3.7](https://github.com/moreati/pickle-fuzz/commit/6f43d1a88f685cd0795ba80ad55aad4e34c4698c). It's slow. There's a _lot_ of branching, in pure...

[pencode_read5](https://github.com/moreati/pickle-fuzz/blob/master/benchmarks/pencode_read5.py) is a variant of pencode. It decodes between [2 and 3 times faster](https://github.com/moreati/pickle-fuzz/commit/5744d248bc800f45228ad0f0a6ae43a391e62709) than plain pencode. This brings it within 10x of cpickle. | Benchmark | CPython 2.7 |...

Notes to self - `ansible.plugins.loader.PluginLoader.get_with_context()` was added in https://github.com/ansible/ansible/commit/984216f52e76b904e5b0fa0fb956ab4f1e0a7751, first tagged in [v2.10.0b1](https://github.com/ansible/ansible/releases/tag/v2.10.0b1). It returns a `namedtuple` containing the loader object - `ansible.plugins.loader.PluginLoader.get()` call this method, then returns the loader...

Incorporated into PR #1017

There is a bug here but I'm afraid fixing it wouldn't allow mitogen to send the lxml module. Importing `lxml` requires importing `lxml.etree`, whch is a binary module. Binary modules...

To use the Ansible xml module you'll need to install lxml on the target host(s), regardless of Mitogen.