3 ms·
I too have a speedy Protocol Buffer implementation in Python: https://github.com/acg/lwpb https://github.com/acg/lwpb It clocks in at 11x faster than json, th
by sigil 16y ago
I too have a speedy Protocol Buffer implementation in Python:
https://github.com/acg/lwpb https://github.com/acg/lwpb
It clocks in at 11x faster than json, the same speedup reported by fast-pb. Only with lwpb:
* There's no codegen step -- which is a disgusting thing in a dynamic language, if you ask me.
* You're not forced into object oriented programming, with lwpb you can decode and encode dicts.
Most of haberman's remarks apply to lwpb as well, ie it's fast, small, and doesn't pull huge dependencies. The lwpb C code was originally written by Simon Kallweit and is similar in intent to upb.
- ssnot 16y agofast and small footprint, as components should be