Protobuf Python has switched to upb as default backend since 21.0, according to the
release notes, which significantly improves the performance. But according to notes
here and
here, it implies the upb backend causes break when it shares messages between Python and C++.
I'm a little bit confused here, as it can refer to 2 different situations,
A Python app uses C++ extension, which passes the protobuf message objects between each other via function/class calls
A Python app and a C++ app transmit protobuf messages via socket/pipe/etc., i.e., it needs to serialize/deserialize the messages
According to the following
note and protobuf advertising it as language-neutral, I assume the break only happens in the 1st situation, but want to double check that I'm not making mistake here.
> Prior to Python 4.21.0, Python apps could share messages with C++ using a native extension.
Thanks.