4min chapter

Weaviate Podcast cover image

Our Mad Journey of Building a Vector Database in Go - Weaviate at FOSDEM 2023

Weaviate Podcast

CHAPTER

How to Allocate a Buffer of Size Eight

Go does something that's called escape analysis. We changed two lines of code and reduced it from 26 seconds to 600 milliseconds. The crazy thing is this one line needs no memory allocations. So if we do that again, our 1 billion numbers that took 26 seconds before now take 600 milliseconds. Now we're starting to get into a range where like this is acceptable for data for databases. And more importantly, the profile is so much simpler right now. There's basically just this one function there. But why we had to do that wasn't very intuitive. It would be cool if there was better education.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode