cpp-serializers icon indicating copy to clipboard operation
cpp-serializers copied to clipboard

Protobuf usage not appropriate

Open jl2922 opened this issue 8 years ago • 1 comments

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.

jl2922 avatar Dec 25 '17 19:12 jl2922

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.

earonesty avatar Mar 24 '20 03:03 earonesty