4cf0f1f5b3
In the past, _res was a global variable. Now, it's multiple function calls. Several functions in the resolver use _res multiple times and therefore call the function(s) far more than necessary. Fix those callers to store the result of _res in a local variable. Add __noinline to the definition of res_init() to avoid the code bloat that these changes would have otherwise incurred. Thanks to jilles for noticing this. Reviewed by: jilles MFC after: 1 week Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D3887 |
||
---|---|---|
.. | ||
h_errno.c | ||
herror.c | ||
Makefile.inc | ||
mtctxres.c | ||
res_comp.c | ||
res_data.c | ||
res_debug.c | ||
res_debug.h | ||
res_findzonecut.c | ||
res_init.c | ||
res_mkquery.c | ||
res_mkupdate.c | ||
res_private.h | ||
res_query.c | ||
res_send.c | ||
res_state.c | ||
res_update.c | ||
Symbol.map |