bind9/lib/ns/include
Alessio Podda e84704bd55 Improve efficiency of ns_client_t reset
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.
2025-07-10 07:19:47 +02:00
..
ns Improve efficiency of ns_client_t reset 2025-07-10 07:19:47 +02:00
.clang-format Add separate .clang-format files for headers 2020-02-14 09:31:05 +01:00