Skip to content

Conversation

@GiedriusS
Copy link
Member

  • Implement io.WriterTo on the snappy decompressor which allows not overallocating memory for decompression
  • Deploy a hack thanos-community/grpc-go@b902040 because the io.WriterTo assertion doesn't work with limited recv size at the moment
  • Disable pooling on unmarshaling and allocate slices that have the exactly needed size. This allows to not overprovision memory because the default memory pool in gRPC has quite coarsely grained buckets.
  • Remove copying of chunks from *AggrChunk because we don't do any pooling on unmarshaling either way. This saves a bit of memory.

- Implement io.WriterTo on the snappy decompressor which allows not
  overallocating memory for decompression
- Deploy a hack
  thanos-community/grpc-go@b902040
  because the io.WriterTo assertion doesn't work with limited recv size
  at the moment
- Disable pooling on unmarshaling and allocate slices that have the
  exactly needed size. This allows to not overprovision memory because
  the default memory pool in gRPC has quite coarsely grained buckets.
- Remove copying of chunks from *AggrChunk because we don't do any
  pooling on unmarshaling either way. This saves a bit of memory.

Signed-off-by: Giedrius Statkevičius <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant