Communications with the Pyhton Stages currently require all messages to be serializable
rbuf system. It’s assumed that you are using
rbufs for your serialization format.
rbufc compiler and build system will take care of compiling your
rbufs into native Python
code. Note that we are not presently using C++ bindings for this, which has a runtime performance
impact. We are generally about 20-30% slower then Pickle, depending on the structures being
sent over the wire.
Expect performance to improve over time.
from pyserialize import serialize, deserialize from my_message_rbuf import MyMessage my_message = MyMessage() bytes = serialize(my_message) roundtrip = deserialize(MyMessage, bytes)
At this point,
roundtrip will contain the same content. Under the hood,
we’re using the same
OutputStream constructs that the other languages
See the main serialization docs for more information.