AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Hidden Madness of Building a Database
Go 1.20 has the idea for memory arenas that can bypass garbage collector and sort of free that data. So if you have something that you know has the same life cycle, then you can put it in the arena and basically in the end be able to do what you want with it. We were at 14 seconds before, and now it's down to 260 milliseconds. The hidden madness is that we actually spent 250 milliseconds decoding while we spent 10 milliseconds summing up those 80 million numbers.