feat(store/base): optimise growth coefficient of `aws.WriteAtBuffer`
Is your feature request related to a problem? Please describe.
Currently, the growth coefficient of the aws.WriteAtBuffer is set to 1. This is done to make sure we reserve more memory in buffer only when needed. This is done to make sure we are conservative in adding more memory to buffer due to memory constraints.
However, this results in slight overhead of copying contents when the size is increased and also we don't cap the buffer size.
Describe the solution you'd like After the in-mem cache is deployed to production, we will get a more real time overview of how large the blobs can get. That data can help us in creating right size buffers more accurately and we can optimise the growth coefficient, either through a config etc. accordingly. This optimisation should be taken to improve the memory usage of kraken-origin
Source: uber/kraken