News for hackers. Stuff that matters.
Re:BGP Implemented in Go by lima on Saturday March 19, 2022 @04:54PM (#30737510)
Sending or receiving an internet full table (and potentially applying filters/aggregations) is still quite performance intensive, since it needs to happen quickly.

A one-second GC pause won't hurt you but managing the necessary data structures in memory can be challenging.

Anecdotally, gobgp is quite a bit slower than hand-optimized C implementations like frr (not that it matters for most gobgp use cases).

Re:BGP Implemented in Go by Karrot_Kream on Saturday March 19, 2022 @07:18PM (#30738447)
> A one-second GC pause won't hurt you but managing the necessary data structures in memory can be challenging.

How so? It's a very common pattern in garbage collected languages to preallocate an array or structures and read/write into it, then "release" the array on finishing the function.

Re:BGP Implemented in Go by mike_d on Sunday March 20, 2022 @02:46AM (#30740683)
> Sending or receiving an internet full table (and potentially applying filters/aggregations) is still quite performance intensive

Nope. I am running 15 sessions with full transit tables, multiple exchanges, and private peers on a four core ARM CPU with 4 GB of RAM.

Re:BGP Implemented in Go by lima on Sunday March 20, 2022 @02:44PM (#30745373)
How does it take to receive a full table?
Re:BGP Implemented in Go by mike_d on Sunday March 20, 2022 @04:56PM (#30746529)
How long? If I down all the peers and bring them up it will take 5-10 seconds to rebuild. But if you do that you're scheduling an outage anyway.
Re:BGP Implemented in Go by tptacek on Saturday March 19, 2022 @05:32PM (#30737763)
What's challenging about it? Go gives you control over the layout of your objects in memory.