Why Nostr? What is Njump?
2024-04-01 19:32:11

azz on Nostr: 29ns/packet? Too slow ...

29ns/packet? Too slow
Just “finished” first implementation of a simple ish memory allocator for Starlight (Constellation’s server implementation). It’s designed to allocate packets directly as they come off the network card. Context: Constellation is a Bitcoin L3 I’m working on.

Fun fact: these packets are only copied in memory once in the entire transaction pipeline (raw pointers are involved 🥸).

29ns/packet means Slabocator9000 could allocate 400gbps of packets per CPU core. That’s only running allocation, so obv full throughput won’t hit that per core but it’s pretty damn fast.

It also reuses all memory and therefore will only use as much memory as it possibly needs.
Author Public Key
npub1t2t7z00szl4cy6cdys80y60y2unlkvc2nyjmr7933u8pphrys4aq4k7vkz