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
The current implementation of io.ReadAll checks for realloc before each read.
I propose instead to check for realloc after each successful read. This will avoid a check before the first read as we know the buffer is already allocated and empty.
The current implementation of
io.ReadAll
checks for realloc before each read.I propose instead to check for realloc after each successful read. This will avoid a check before the first read as we know the buffer is already allocated and empty.
Current implementation:
My proposal:
The text was updated successfully, but these errors were encountered: