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
This PR introduces a buffered `io.Reader` that automatically releases
its read buffer when empty. To optimize memory usage, the reader defers
buffer reallocation until data is available in the underlying
`readyreader.Reader` (achieved by calling `ReadOnReady`).
In a follow-up PR (#9032), the HTTP/2 framer will be updated to utilize
this new buffered reader whenever the underlying reader implements the
`readyreader.Reader` interface.
The implementation and associated tests are based on the [standard
library's](https://cs.opensource.google/go/go/+/refs/tags/go1.26.2:src/bufio/bufio.go;l=35).
RELEASE NOTES: N/A
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
0 commit comments