Join Nostr
2025-10-24 21:55:58 UTC

Rusty Russell on Nostr: I had way too much fun optimizating CLN due to a Boltz report recently. Like most ...

I had way too much fun optimizating CLN due to a Boltz report recently. Like most engineers, I love optimizing, but bitter experience means I only allow myself to do so when I have an actual problem to solve.

My favourites:
1. Adding 1M entries to a sqlite3 table with two indexes: 81 seconds. Adding entries *then* creating indices: 17 seconds.
2. Optimization of O(n²) cleanup code by realizing it could be deleted entirely.

I admit I continued to optimize long after their performance problem was fixed, but you gotta have *some* fun!