Mercurial > hg > nginx
comparison src/http/modules/ngx_http_index_module.c @ 4419:7084faa7a4b4
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 30 Jan 2012 10:01:39 +0000 |
parents | d620f497c50f |
children | 08713bac87fc 50143b8fb95f |
comparison
equal
deleted
inserted
replaced
4418:aac79fc948cc | 4419:7084faa7a4b4 |
---|