diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-05-05 01:19:00 +0100 |
---|---|---|
committer | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 20:31:00 +0100 |
commit | 7d99882da7526f50bae10c4077d9aeefac1dc40d (patch) | |
tree | dc27073722c6928ec24b8d041a907612e2a2a3e6 /src/nxt_router.h | |
parent | 6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff) | |
download | unit-7d99882da7526f50bae10c4077d9aeefac1dc40d.tar.gz unit-7d99882da7526f50bae10c4077d9aeefac1dc40d.tar.bz2 |
Router: removed unused structure member proxy_buffers.
proxy_buffers is declared as a structure member of nxt_socket_conf_t and
is set in nxt_router_conf_create(), however it is not used anywhere.
Removing it has the nice side effect of making the nxt_socket_conf_t
structure require one less cacheline (on x86-64 at least) as the summary
from pahole[0] shows
Before
/* size: 200, cachelines: 4, members: 25 */
/* sum members: 185, holes: 3, sum holes: 15 */
After
/* size: 192, cachelines: 3, members: 24 */
/* sum members: 177, holes: 3, sum holes: 15 */
[0]: https://github.com/acmel/dwarves
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r-- | src/nxt_router.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h index 7e337d27..538e54eb 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -181,7 +181,6 @@ typedef struct { size_t max_body_size; size_t proxy_header_buffer_size; size_t proxy_buffer_size; - size_t proxy_buffers; nxt_msec_t idle_timeout; nxt_msec_t header_read_timeout; |