MEDIUM: pattern: turn the pattern chaining to single-linked list
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2020 13:50:29 +0000 (14:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:09 +0000 (19:27 +0100)
commit38d41996c12c160f9bcbb17b539554d3dc91b978
treec5ebae5ebb45743048358a41cf6e5d9edcd640dc
parent867a8a5a10ba7e15000dc58f5edf386f6d631a3e
MEDIUM: pattern: turn the pattern chaining to single-linked list

It does not require heavy deletion from the expr anymore, so we can now
turn this to a single-linked list since most of the time we want to delete
all instances of a given pattern from the head. By doing so we save 32 bytes
of memory per pattern. The pat_unlink_from_head() function was adjusted
accordingly.
include/haproxy/pattern-t.h
src/pattern.c