diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-10-04 14:59:35 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-10-04 14:59:35 +0300 |
commit | ebbe89bd5c22ef903e5cd1a898ad75c6739ae4bc (patch) | |
tree | b9f5ad9dde7c95561946cf6531ef6203691aa3f5 /src/nxt_port.h | |
parent | 6a64533fa3b96bb64bfde4615e40376d65a292cb (diff) | |
download | unit-ebbe89bd5c22ef903e5cd1a898ad75c6739ae4bc.tar.gz unit-ebbe89bd5c22ef903e5cd1a898ad75c6739ae4bc.tar.bz2 |
Optimized send message allocations.
For empty write queue cases, it is possible to avoid allocation and enqueue
send message structures. Send message initialized on stack and passed to
write handler. If immediate write fails, send message allocated from engine
pool and enqueued.
Diffstat (limited to 'src/nxt_port.h')
-rw-r--r-- | src/nxt_port.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h index f6679bb2..fdb5a561 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -118,8 +118,6 @@ typedef struct { nxt_port_msg_t port_msg; nxt_work_t work; - nxt_event_engine_t *engine; - nxt_mp_t *mem_pool; } nxt_port_send_msg_t; |