summaryrefslogtreecommitdiff
path: root/zebra/zebra_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-03-08 20:52:45 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-03-11 14:18:13 -0500
commite92508a741e03b8721ccb3424cbebe4d5476e9d0 (patch)
tree25dc75ca3adc00fc302536d71fea67069d3549f0 /zebra/zebra_errors.c
parent89ee4bbb21d628b7cabbc54c9cf23064d3295484 (diff)
lib: Convert prefix_master->str to a RB Tree
The prefix_master->str data structure was a sorted list of the prefix names. Not that big of a deal other than insertion and deletion is insanely expensive when you have a large number of unique prefix-lists. In my test config file that I discovered this, I have 587 unique prefix lists spread out acros ~26k lines of prefix-lists. When reading this config file into FRR the read time goes from 690 seconds to 650 seconds. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_errors.c')
0 files changed, 0 insertions, 0 deletions