mirror of
https://github.com/nginx/nginx.git
synced 2026-10-12 17:02:03 -05:00
Core: slight optimization in ngx_chain_update_chains().
It is not necessary to traverse *busy and link the *out when *out is NULL.
This commit is contained in:
1 parent
8e9f1df637
commit
42298aeb13
1 file changed
+2
@@ -186,6 +186,7 @@ ngx_chain_update_chains(ngx_pool_t *p, ngx_chain_t **free, ngx_chain_t **busy,
|
||||
{
|
||||
ngx_chain_t *cl;
|
||||
|
||||
if (*out) {
|
||||
if (*busy == NULL) {
|
||||
*busy = *out;
|
||||
|
||||
@@ -196,6 +197,7 @@ ngx_chain_update_chains(ngx_pool_t *p, ngx_chain_t **free, ngx_chain_t **busy,
|
||||
}
|
||||
|
||||
*out = NULL;
|
||||
}
|
||||
|
||||
while (*busy) {
|
||||
cl = *busy;
|
||||
|
||||
Reference in new issue
Block a user