diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2015-12-19 02:35:32 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2015-12-19 02:35:32 +0000 |
commit | ec40565958ba8acbc1f4b137261df32c9fc37568 (patch) | |
tree | 2a31724c03c6ae1e779ab9f067bacc2a6754a182 /lib/libc/resolv/res_private.h | |
parent | b186dc092886ef3743545e601726b64f006502dc (diff) | |
download | FreeBSD-src-ec40565958ba8acbc1f4b137261df32c9fc37568.zip FreeBSD-src-ec40565958ba8acbc1f4b137261df32c9fc37568.tar.gz |
MFC r289837
resolver: abuse _res a little less
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.
Sponsored by: Dell Inc.
Diffstat (limited to 'lib/libc/resolv/res_private.h')
0 files changed, 0 insertions, 0 deletions