Reduce struct isc__nm_uvreq size from 1560 to 560 bytes

The uv_req union member of struct isc__nm_uvreq contained libuv request
types that we don't use.  Turns out that uv_getnameinfo_t is 1000 bytes
big and unnecessarily enlarged the whole structure.  Remove all the
unused members from the uv_req union.
This commit is contained in:
Ondřej Surý 2023-09-12 09:10:41 +02:00
parent 2367b6a2e1
commit eada7b6e13
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -301,14 +301,9 @@ struct isc__nm_uvreq {
union {
uv_handle_t handle;
uv_req_t req;
uv_getaddrinfo_t getaddrinfo;
uv_getnameinfo_t getnameinfo;
uv_shutdown_t shutdown;
uv_write_t write;
uv_connect_t connect;
uv_udp_send_t udp_send;
uv_fs_t fs;
} uv_req;
ISC_LINK(isc__nm_uvreq_t) link;
ISC_LINK(isc__nm_uvreq_t) active_link;