home tags events about login
one honk maybe more

benjojo posted 28 Sep 2026 19:12 +0000

Remarkably good Monday, obtained new glasses, connected a new 10G transit, and rolled a upgrade on bgp.tools that saved somewhere between 20k to 40k GBP worth of RAM! (after a cosy Sunday in front of a profiler)

benjojo replied 28 Sep 2026 19:23 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/mL2Q7tSWD8MNgxlJx1

Example graph from a one of many machines!

Actual changes between versions include:

• Removing most map[whatever]whatever objects (by volume)
• Changing the key in most maps from a 32byte struct to a 24 byte one
• Some fancy array/slice arithmetic

Pretty chuffed! Since most of these diffs are quite boring and didn't really make the code visibly worse. If I need another ~15% reduction I can refactor things more, but the struggle is to not make it read like brainfuck to future Ben

(Don't ask why this box has so much memory usage in buffered state)

A RRDTool graph showing RAM usage on a single machine going from 250GB to 170GB in two waves