Introduce PYBIND11_PROTOBUF_ASSUME_FULL_ABI_COMPATIBILITY (see proto_cast_util.h):
This macro can be defined by users certain about ABI compatibility between all Python extensions in their environment using protobufs. If defined, passing protos from Python to C++ may skip serialization/deserialization. — Note that this change makes the default behavior safer, but unless PYBIND11_PROTOBUF_ASSUME_FULL_ABI_COMPATIBILITY is defined, the runtime performance may be noticably slower.
Introduce
PYBIND11_PROTOBUF_ASSUME_FULL_ABI_COMPATIBILITY
(see proto_cast_util.h):This macro can be defined by users certain about ABI compatibility between all Python extensions in their environment using protobufs. If defined, passing protos from Python to C++ may skip serialization/deserialization. — Note that this change makes the default behavior safer, but unless
PYBIND11_PROTOBUF_ASSUME_FULL_ABI_COMPATIBILITY
is defined, the runtime performance may be noticably slower.