2min chapter

Go Time: Golang, Software Engineering cover image

A deep dive into Go's stack

Go Time: Golang, Software Engineering

CHAPTER

How to Use Pointers to Save on Memory

You should almost always put things on the stack, which means like, okay, I said that I wrote C for a while before I started with Go and see a really big thing as to pass point cards around. And so I kind of took this practice with me to go, but it's really wrong because anywhere you can copy a struct, which means just pass it around as it is without taking its pointer,. So sticking to that will probably get you a performance boost if you haven't been doing that so far. Yeah.

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