Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


  export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
  python setup.py build_ext
It's "EXPERIMENTAL", but it seems to work well.


If anyone is interested in solving this problem, please check out CyPB https://github.com/connexio/cypb

It is not ready for production use yet. Please help us by testing and submitting bug reports & patches!


This 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: