commit | d5ec100661f6b02e9e1b7e9fc14c7a2e7f2dcc8d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Jan 02 12:40:14 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jan 02 12:40:14 2022 +0100 |
tree | a80471cb2d28f845b7ee526ad5932e28d9506780 | |
parent | f64504716843f69a9b10582b2d9cce6a7919795a [diff] |
MINOR: pools: always evict oldest objects first in pool_evict_from_local_cache() For an unknown reason, despite the comment stating that we were evicting oldest objects first from the local caches, due to the use of LIST_NEXT, the newest were evicted, since pool_put_to_cache() uses LIST_INSERT(). Some tests on 16 threads show that evicting oldest objects instead can improve performance by 0.5-1% especially when using shared pools.