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
Reuse the byte buffer from GRPC response in the frontend. (#4377)
* Reuse the byte buffer from GRPC response in the frontend.
This PR allow to reuse the GRPC byte buffer casted as a `io.Reader` in the http rountripper of the frontend.
This way we don't have to copy the content from the reader into another buffer when reading the http response.
I've been testing this with in Loki and this shows good memory saving (around 1GB).
Signed-off-by: Cyril Tovena <[email protected]>
* Use safe cast
Signed-off-by: Cyril Tovena <[email protected]>
* Review feedback.
Signed-off-by: Cyril Tovena <[email protected]>
0 commit comments