mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-18 14:01:04 +03:00
The buffer resizing algorithm is slightly different. The initial buffer is on the stack, and small buffers are directly allocated on the heap using the exact required size. The overhead of the additional copy is compensated by the lowered setup cost for buffers compared to libio streams. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2.6 KiB
2.6 KiB