about summary refs log tree commit diff
path: root/libio/vswprintf.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-12-19 18:56:55 +0100
commitaf7f4165512ea242b5f711ee03a04f6afe22232d (patch)
treec4fd7778fa2e513af3105bc97eccddbb60d31ef7 /libio/vswprintf.c
parentfb9bd841b8e8b22a42fd68c56355c2ddd211db21 (diff)
downloadglibc-af7f4165512ea242b5f711ee03a04f6afe22232d.tar.gz
glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.tar.xz
glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.zip
libio: Convert __vasprintf_internal to buffers
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>
Diffstat (limited to 'libio/vswprintf.c')
0 files changed, 0 insertions, 0 deletions