MINOR: checks: Use a tree instead of a list to store tcp-check rulesets
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Apr 2020 11:45:00 +0000 (13:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 08:46:28 +0000 (10:46 +0200)
commitd7cee71e773091d74d6589e51cae3f406a917527
treedb234bfc6ec1fb0de6af8afca70ac190f18bbb99
parent815516d6fd334d265208c442afcb21baa02e9405
MINOR: checks: Use a tree instead of a list to store tcp-check rulesets

Since all tcp-check rulesets are globally stored, it is a problem to use
list. For configuration with many backends, the lookups in list may be costly
and slow downs HAProxy startup. To solve this problem, tcp-check rulesets are
now stored in a tree.
include/types/checks.h
src/checks.c