Re: bgpd minor optimization

2019-06-20 Thread Sebastian Benoit
ok Claudio Jeker(cje...@diehard.n-r-g.com) on 2019.06.20 18:53:04 +0200: > prefix_add() is only called by path_update() and path_update already > knows if the prefix exists or not (by calling prefix_get()). So doing > the same check again in prefix_add() is silly and actually rather > expensive wi

bgpd minor optimization

2019-06-20 Thread Claudio Jeker
prefix_add() is only called by path_update() and path_update already knows if the prefix exists or not (by calling prefix_get()). So doing the same check again in prefix_add() is silly and actually rather expensive with lots of peers. Just alloc and link the prefix instead. OK? -- :wq Claudio In