| commit | 73d0b6a72134552cbcd54f2ee5887d438080b587 | [log] [tgz] |
|---|---|---|
| author | Valentin Bartenev <vbart@nginx.com> | Mon Jan 30 10:01:39 2012 +0000 |
| committer | Valentin Bartenev <vbart@nginx.com> | Mon Jan 30 10:01:39 2012 +0000 |
| tree | a7c1de2b2f80cc93c13b6ce206606c978268228a | |
| parent | 8dab3b5a39493fb2803e0391a8ec4d1ee999f966 [diff] |
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.