]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: protocol: use a family array to index the protocol handlers
authorWilly Tarreau <willy@haproxy.com>
Fri, 20 Feb 2015 15:53:25 +0000 (16:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Feb 2015 22:12:31 +0000 (23:12 +0100)
commitb550d009ca06e31672e3e4b7b8555a26e17b3370
treebbe985fd52b059091d7ffe58cacae05b8411db96
parent2e05a8c74210689557d326b4741ba028f4c63759
MEDIUM: protocol: use a family array to index the protocol handlers

Instead of walking over a list, we now have a direct mapping between
protocol families and their respective handlers. This will allow fast
lookups.
include/proto/protocol.h
src/protocol.c