diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2022-11-29 10:39:56 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2022-12-02 09:53:57 +0100 |
commit | 7390eb43fe1bfb069af80ba8f73f7dc4999df0fd (patch) | |
tree | 4c4a9c984ef196e5edea47afc8c7f9e00ef0abb0 /test/io | |
parent | 07ac707758395749611e1028ef18127087d198db (diff) | |
download | ruby-7390eb43fe1bfb069af80ba8f73f7dc4999df0fd.tar.gz |
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.
Diffstat (limited to 'test/io')
0 files changed, 0 insertions, 0 deletions