commit | 74167b25f7a6e38281c6f3d60a3ccb4e465d2e65 | [log] [tgz] |
---|---|---|
author | Frédéric Lécaille <flecaille@haproxy.com> | Tue May 28 19:02:42 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jun 05 08:33:35 2019 +0200 |
tree | 3acaca9f4c8a5c55620b505de24ad29aeaed5ff1 | |
parent | 4a3fef834c532affb1c9ba80717bb930a919d32b [diff] |
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.