Swift by Sundell cover image

80: “Lists and loops”, with special guest Nick Lockwood

Swift by Sundell

00:00

Using a Linked List to Optimize Your Engine

Swift has a lot of magic going on in the way that it's implemented. It tries to hide complexity from you, which makes it very approachable as a language compared to sort of lower level languages like C. But it also kind of shoots you in the foot later on when you're trying to optimize things. Swift introduces these value types. And intuitively, you think, okay, value types live on the stack. That's just not really true. Value types sometimes live on the heap but they also depend on how big the struct is. Right, so obfuscation ceases to be helpful and becomes a hindrance if you don't tune your performance.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app