Project

General

Profile

« Previous | Next » 

Revision 7390eb43

Added by byroot (Jean Boussier) over 2 years ago

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.