]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_zebra.c
bgpd: Remove memset from bgp_zebra_announce
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 Jul 2020 14:07:17 +0000 (10:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 17 Jul 2020 14:07:17 +0000 (10:07 -0400)
commit7cc27d418f53712b733c9f0a69eebb1084cdbea5
tree2d67177e49be0192418ee5a22a99a196ee444b55
parent7d4b857955864f6fd8aa40ebf61f9c3a9dc90041
bgpd: Remove memset from bgp_zebra_announce

During perf testing of receiving and installing 7.5 million
routes into zebra it was noticed that memset in bgp_zebra_announce
was taking ~11% of the runtime.  With this change bgp_zebra_announce
now no longer has any appreciable time spent in memset as reported
by perf.  In addition bgp_zebra_announce run time in perf was
reduced by a composite amount.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_zebra.c