aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-18 08:49:54 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-12-12 15:39:05 +0100
commit214908c0def333495c359630d7822e7ccb6b8154 (patch)
treef9416d4784dffc7afdb81e1cf0e684099c843ead /malloc/alloc_buffer_alloc_array.c
parentb5edce53855b46d13761982dc3000a16d05b7897 (diff)
downloadglibc-214908c0def333495c359630d7822e7ccb6b8154.tar.xz
glibc-214908c0def333495c359630d7822e7ccb6b8154.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.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions