aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_regex.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2012-01-30 10:01:39 +0000
committerValentin Bartenev <vbart@nginx.com>2012-01-30 10:01:39 +0000
commit73d0b6a72134552cbcd54f2ee5887d438080b587 (patch)
treea7c1de2b2f80cc93c13b6ce206606c978268228a /src/core/ngx_regex.c
parent8dab3b5a39493fb2803e0391a8ec4d1ee999f966 (diff)
downloadnginx-73d0b6a72134552cbcd54f2ee5887d438080b587.tar.gz
nginx-73d0b6a72134552cbcd54f2ee5887d438080b587.zip
Limit req: number of cleanup calls reduced.
Doing a cleanup before every lookup seems to be too aggressive. It can lead to premature removal of the nodes still usable, which increases the amount of work under a mutex lock and therefore decreases performance. In order to improve cleanup behavior, cleanup function call has been moved right before the allocation of a new node.
Diffstat (limited to 'src/core/ngx_regex.c')
0 files changed, 0 insertions, 0 deletions