3 ms·
The serialization/deserialization times are dramatically different for Python. Thrift has an accelerated binary serializer written in C with Python bindings, wh
by ankrgyl 15y ago
The serialization/deserialization times are dramatically different for Python. Thrift has an accelerated binary serializer written in C with Python bindings, while Protobuf's is pure Python. While there exist third party C++ wrappers for Protobuf in Python as well, they are buggy (segfaults).
- benfrederickson 15y agoThis is ultimately the reason we chose Thrift over PB when developing our app (zite). Thrift was over 40 times faster in serialization for our python code.
- TillE 15y agoexport PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp python setup.py build_ext It's "EXPERIMENTAL", but it seems to work well.
- atamyrat 15y agoIf anyone is interested in solving this problem, please check out CyPB https://github.com/connexio/cypb https://github.com/connexio/cypb It is not ready for production use yet. Please help us by testing and submitting bug reports & patches!