Re: bgpd remove aspath cache for more speed

2022-08-29 Thread Claudio Jeker
On Mon, Aug 29, 2022 at 07:44:33PM +0200, Theo Buehler wrote: > On Mon, Aug 29, 2022 at 07:28:58PM +0200, Claudio Jeker wrote: > > This diff removes the aspath cache. I tried replacing it with an RB tree > > but it still consumes a lot of CPU cycles for little gain. So instead just > > copy the asp

Re: bgpd remove aspath cache for more speed

2022-08-29 Thread Theo Buehler
On Mon, Aug 29, 2022 at 07:28:58PM +0200, Claudio Jeker wrote: > This diff removes the aspath cache. I tried replacing it with an RB tree > but it still consumes a lot of CPU cycles for little gain. So instead just > copy the aspath for all rde_aspath structs. It will use more memory but in > most

bgpd remove aspath cache for more speed

2022-08-29 Thread Claudio Jeker
This diff removes the aspath cache. I tried replacing it with an RB tree but it still consumes a lot of CPU cycles for little gain. So instead just copy the aspath for all rde_aspath structs. It will use more memory but in most cases the amount is in the 20-30% order. This also includes a lot of f