summaryrefslogtreecommitdiff
path: root/ext/digest/bubblebabble
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2022-11-29 10:39:56 +0100
committerJean Boussier <jean.boussier@gmail.com>2022-12-02 09:53:57 +0100
commit7390eb43fe1bfb069af80ba8f73f7dc4999df0fd (patch)
tree4c4a9c984ef196e5edea47afc8c7f9e00ef0abb0 /ext/digest/bubblebabble
parent07ac707758395749611e1028ef18127087d198db (diff)
io.c (read_all): grow the buffer exponentially when size is unknownHEADmaster
[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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6829
Diffstat (limited to 'ext/digest/bubblebabble')
0 files changed, 0 insertions, 0 deletions