io.c (read_all): grow the buffer exponentially when size is unknown
[Feature #6047]
Currently it's grown by BUFSIZ (1024) on every iteration which is bit wasteful. Instead we can double the capacity whenever there is less than BUFSIZ capacity left.
BUFSIZ
io.c (read_all): grow the buffer exponentially when size is unknown
[Feature #6047]
Currently it's grown by
BUFSIZ
(1024) on every iteration which is bit wasteful.Instead we can double the capacity whenever there is less than
BUFSIZ
capacityleft.