musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/tmpfile.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年04月01日 23:22:16 -0400
committerRich Felker <dalias@aerifal.cx>2012年04月01日 23:22:16 -0400
commit4f346b08b33c9265c36fe8a14f5f908b1a9f296a (patch)
treed4e5c0c5b58302e39f56d550806d392e543974d3 /src/stdio/tmpfile.c
parent4dbd94112ff74064554054b5ff27a7af547e4899 (diff)
downloadmusl-4f346b08b33c9265c36fe8a14f5f908b1a9f296a.tar.gz
improve name lookup performance in corner cases
the buffer in getaddrinfo really only matters when /etc/hosts is huge, but in that case, the huge number of syscalls resulting from a tiny buffer would seriously impact the performance of every name lookup. the buffer in __dns.c has also been enlarged a bit so that typical resolv.conf files will fit fully in the buffer. there's no need to make it so large as to dominate the syscall overhead for large files, because resolv.conf should never be large.
Diffstat (limited to 'src/stdio/tmpfile.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月01日 18:21:17 +0000

AltStyle によって変換されたページ (->オリジナル) /