Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit a565b92

Browse files
committed
Modify the protobufs to reuse allocated memory
These modifications allow memory that has already been allocated to be reused. Instead of creating new slice object, we reuse objects and reset their state.
1 parent 3bd7ebd commit a565b92

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

pkg/prompb/remote.pb.go

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/prompb/types.pb.go

Lines changed: 20 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)