]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Add a LRU cache implementation for dictionaries.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 May 2019 17:02:42 +0000 (19:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Jun 2019 06:33:35 +0000 (08:33 +0200)
commit74167b25f7a6e38281c6f3d60a3ccb4e465d2e65
tree3acaca9f4c8a5c55620b505de24ad29aeaed5ff1
parent4a3fef834c532affb1c9ba80717bb930a919d32b
MINOR: peers: Add a LRU cache implementation for dictionaries.

We want to send some stick-table data fields stored as strings in dictionaries
without consuming too much memory and CPU. To do so we implement with this patch
a cache for send/received dictionaries entries. These dictionary of strings entries are
stored in others real dictionary entries with an identifier as key (unsigned int)
and a pointer to the dictionary of strings entries as values.
include/types/peers.h
src/peers.c