You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce memory consumption of structured logging proto encoding by passing tag value
The proto encoding for structured logging currently pessimistically assumes each numeric tag value for encoded fields could be up to `UINT64_MAX`.
In practice, the tag values we care about are all < 16, which only requires 1 byte
of buffer space.
This CL improves the memory consumption by specifying the tag value when
calculating the buffer size needed for the structured logging proto.
PiperOrigin-RevId: 696118135
Change-Id: Iee67deef568cb4df7646d3ddd40c14b490ca0e45
0 commit comments