I think I got nerd sniped into implementing online compaction for CLN's gossip store. Mainly from people agitating that we should use a DB for gossip messages.
This will speed startup and reduce memory usage. And it's only going to take me a couple of days' work, depending on how many side-cleanups I do.
It can be hard to tell a flawed implementation of a good idea from a bad idea. But trust me, this is gonna be great!
Login to reply
Replies (8)
28M offers
45M topology
46M cln-askrene
98M cln-xpay
100M lightning_chann
356M bookkeeper
615M lightningd
highest mem use offenders on my node atm v25.09.1
nerd sniping is the source of everything that is good in the world
nerd sniping is the source of everything that is good in the world
As an old coder, these numbers make me sad.
And I wonder what that channeld is doing? You can attach a debugger and `p tal_dump() ` and it will spew a memory tree dump out to its stderr. Might take a few seconds.
Let me look at my node...
Will try this soon
Could not find that symbol anywhere for gdb
Ah, might be only debug builds... Sorry, I've been away from my laptop and answering on mobile.
hmm ok will try debug build