mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-19 09:09:36 -04:00
The ns_client_t struct is reset and zero-ed out on every query, but some fields (query, message, manager) are preserved. We observe two things: - The sendbuf field is going to be overwritten anyway, there's no need to zero it out. - The fields are copied out when the struct is zero-ed out, and then copied back in. For the query field (which is 896 bytes) this is very inefficient. This commit makes the reset more efficient avoiding to unnecessary zero-ing and copy. |
||
|---|---|---|
| .. | ||
| testdata | ||
| meson.build | ||
| netmgr_wrap.c | ||
| notify_test.c | ||
| plugin_test.c | ||
| query_test.c | ||