-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory consumption of structured logging proto encoding by pas…
…sing 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
- Loading branch information
1 parent
27a0c73
commit 3a3b7e4
Showing
3 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters