diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-07-06 17:30:04 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-07-11 13:47:31 +0200 |
commit | 736ac221d1e89f3f35703d5175057404de62b50b (patch) | |
tree | 8a0f11fb5de225b50ae2d02281d13d59ca8ec2dc /ospf6d/ospf6_interface.c | |
parent | lib: table: maintain parallel hash for route_table (diff) | |
download | frr-736ac221d1e89f3f35703d5175057404de62b50b.tar.xz frr-736ac221d1e89f3f35703d5175057404de62b50b.zip |
lib: table: use hash for exact-match lookups
Most read accesses of route_table are actually exact matches where
walking down the tree is wildly inefficient. Use a parallel hash
structure instead.
This significantly speeds up processes that are performance-bound by
table accesses, e.g. BGP withdraw processing. In other locations, the
improvement is not seen as strongly, e.g. when filter processing is the
limiting factor.
[includes fix to ignore prefix host bits in hash comparison]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
0 files changed, 0 insertions, 0 deletions