]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: create a tree to store proxies by name
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 06:22:35 +0000 (07:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 06:48:35 +0000 (07:48 +0100)
commitf79d950163df553b98e486610a196b9cd98db43d
treee07f1f1f30876a99a2960bd3b040d6d2fe8bf5fd
parent20a81c2d3f0b1b7c456941e063f6b7940164f65d
MEDIUM: proxy: create a tree to store proxies by name

Large configurations can take time to parse when thousands of backends
are in use. Let's store all the proxies in trees.

findproxy_mode() has been modified to use the tree for lookups, which
has divided the parsing time by about 2.5. But many lookups are still
present at many places and need to be dealt with.
include/proto/proxy.h
include/types/proxy.h
src/cfgparse.c
src/proxy.c