]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: optimize bgp_info_cmp()
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Mon, 7 May 2012 16:52:56 +0000 (16:52 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 22 May 2012 18:25:49 +0000 (20:25 +0200)
commit8ff56318a8bd188cfcc1cdab689c46c326b50d38
tree6b7b718166aa6fe3b7264d3efba9c39750f5917b
parentc76275ee960c708408646d8a680b201b27cb9c1a
bgpd: optimize bgp_info_cmp()

* bgp_route.c: (bgp_info_cmp) Reduce indirections, precalculate some
  values that are used several times, reduce conditionals.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_route.c