bird/proto/bgp
Ondrej Zajicek ba2a076001 BGP: Improve tx performance during feed/flush
The prefix hash table in BGP used the same hash function as the rtable.
When a batch of routes are exported during feed/flush to the BGP, they
all have similar hash values, so they are all crowded in a few slots in
the BGP prefix table (which is much smaller - around the size of the
batch - and uses higher bits from hash values), making it much slower due
to excessive collisions. Use a different hash function to avoid this.

Also, increase the batch size to fill 4k BGP packets and increase minimum
BGP bucket and prefix hash sizes to avoid back and forth resizing during
flushes.

This leads to order of magnitude faster flushes (on my test data).
2022-05-15 15:05:37 +02:00
..
attrs.c BGP: Improve tx performance during feed/flush 2022-05-15 15:05:37 +02:00
bgp.c Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00
bgp.h Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00
config.Y Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00
Doc Doc: Rename code documentation files back to Doc 2018-12-14 02:03:42 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
packets.c Merge branch 'oz-trie-table' 2022-02-06 23:42:10 +01:00