]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: config: faster lookup for duplicated proxy name
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 07:17:08 +0000 (08:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 07:21:42 +0000 (08:21 +0100)
commit7cbc915a1d009f167ffa2f2dcff84edbcce7d2f2
tree5936a407b893379776d27d4720973904873bc4d3
parent991610d33fcf4a8bf9ece30967f3326cfa555c1c
MEDIUM: config: faster lookup for duplicated proxy name

cfg_parse_listen() currently checks for duplicated proxy names.
Now that we have a tree for this, we can use it.

The config load time was further reduced by 1.6, which is now
about 4.5 times faster than what it was without the trees.

In fact it was the last CPU-intensive processing involving proxy
names. Now the only remaining point is the automatic fullconn
computation which can be bypassed by having a fullconn in the
defaults section, reducing the load time by another 10x.
src/cfgparse.c