cpp-serializers
cpp-serializers copied to clipboard
Protobuf usage not appropriate
For Google's protobuf, when a significant portion of negative numbers is expected, use sint64 instead of int64 in the proto definition will make it run much faster and give a much smaller size.
In addition, protobuf does a lot of work during the "setter". To be fair, you need to include the set calls in the loop, not just the serialize call.