[MEDIUM] ebtree: upgrade to version 6.0
authorWilly Tarreau <w@1wt.eu>
Sun, 9 May 2010 17:29:23 +0000 (19:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 May 2010 14:52:00 +0000 (16:52 +0200)
commit3a93244ed8dfe6ef0f7be1360e8c5cb1f65a9042
treebd6ba0ebc4b9218e1af18c313dc4b42242b48489
parent2b5285da333ec711789a0806bd840cc7bcba0fa5
[MEDIUM] ebtree: upgrade to version 6.0

This version adds support for prefix-based matching of memory blocks,
as well as some code-size and performance improvements on the generic
code. It provides a prefix insertion and longest match which are
compatible with the rest of the common features (walk, duplicates,
delete, ...). This is typically used for network address matching. The
longest-match code is a bit slower than the original memory block
handling code, so they have not been merged together into generic
code. Still it's possible to perform about 10 million networks lookups
per second in a set of 50000, so this should be enough for most usages.

This version also fixes some bugs in parts that were not used, so there
is no need to backport them.
16 files changed:
ebtree/eb32tree.c
ebtree/eb32tree.h
ebtree/eb64tree.c
ebtree/eb64tree.h
ebtree/ebimtree.c
ebtree/ebimtree.h
ebtree/ebistree.c
ebtree/ebistree.h
ebtree/ebmbtree.c
ebtree/ebmbtree.h
ebtree/ebpttree.c
ebtree/ebpttree.h
ebtree/ebsttree.c
ebtree/ebsttree.h
ebtree/ebtree.c
ebtree/ebtree.h