musl/src/network
Rich Felker 4f346b08b3 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.
2012-04-01 23:22:16 -04:00
..
__dns.c improve name lookup performance in corner cases 2012-04-01 23:22:16 -04:00
__dns.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
__ipparse.c ipv6 parsing code (formerly dummied-out) 2011-04-25 17:04:40 -04:00
accept.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
bind.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
connect.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
dn_expand.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ent.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
freeaddrinfo.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gai_strerror.c fix wrong messages in gai_strerror 2011-08-01 00:31:15 -04:00
getaddrinfo.c improve name lookup performance in corner cases 2012-04-01 23:22:16 -04:00
gethostbyaddr.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyaddr_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyname2.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyname2_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
gethostbyname_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getnameinfo.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getpeername.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
getservbyname.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getservbyname_r.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getservbyport.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getservbyport_r.c remove some stray trailing space characters 2011-09-13 09:53:41 -04:00
getsockname.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
getsockopt.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
h_errno.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
hstrerror.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
htonl.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
htons.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
if_freenameindex.c implement if_nameindex and if_freenameindex 2011-08-03 12:13:13 -04:00
if_indextoname.c implement if_indextoname and if_nametoindex functions 2011-04-05 13:20:08 -04:00
if_nameindex.c implement if_nameindex and if_freenameindex 2011-08-03 12:13:13 -04:00
if_nametoindex.c implement if_indextoname and if_nametoindex functions 2011-04-05 13:20:08 -04:00
in6addr_any.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
in6addr_loopback.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inet_addr.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inet_aton.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inet_ntoa.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inet_ntop.c remove some stray trailing space characters 2011-09-13 09:53:41 -04:00
inet_pton.c fix bug in ipv6 parsing that prevented parsing a lone "::" 2011-04-25 17:49:21 -04:00
listen.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
netname.c "implement" getnetbyaddr and getnetbyname 2011-07-12 02:52:06 -04:00
ntohl.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
ntohs.c optimize ntohl etc. in terms of bswap functions 2011-04-12 13:13:27 -04:00
proto.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
recv.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
recvfrom.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
recvmsg.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
res_init.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
res_query.c res_search symbol, aliased to res_query for now (better than nothing) 2011-06-30 23:12:07 -04:00
res_state.c add _res (__res_state()) dummy 2011-04-06 15:47:26 -04:00
send.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
sendmsg.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
sendto.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
serv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
setsockopt.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
shutdown.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
sockatmark.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
socket.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
socketpair.c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00