I stumbled upon a post from 2010 mentioning using CExtensions to improve python protobuf serialization times:
https://groups.google.com/g/protobuf/c/z7E80KYJscc/m/ysCjHHmoraUJwhere the author states "~13x speedups" as a result of "Python code with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp actually
also *searches for the symbols for any pre-generated C++ code in the
current process*, and uses them if available instead of
DynamicMessage." when using a CExtension. I can find
reference code on github that uses this technique, and references a corresponding speedup, however I do notice that all code using this approach is ~10 years old. Is this approach still beneficial in any way to improve serialization performance in python? Or would protobuf 3.19+ with
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp result in equally performant serialization when serializing in Python3? Thanks
- Daniel