Commit 54511f70 authored by Charles Munger's avatar Charles Munger Committed by Brian Duff
Browse files

Optimize measurement and serialization of nano protos.



Measuring the serialized size of nano protos is now a zero-alloc operation, and serializing a proto now allocates no memory (other than the output buffer) instead of O(total length of strings).

Change-Id: Id5e2ac3bdc4ac56c0bf13d725472da3a00c9baec
Signed-off-by: default avatarCharles Munger <clm@google.com>
parent ec2f2445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment