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 commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Buffered reads (#31)
* add ReadPacket benchmark
* make readPacket use a bufio.Reader
This should give us some performance wins, since somewhere down the call
chain we read byte-by-byte, which has suboptimal performance when
reading involves a syscall.
Note that even in the recursive case, we are not buffering multiple
times, since the bufio.NewReader just returns the underlying reader if
it is already buffered.
Co-authored-by: David Bimmler <[email protected]>