
80: “Lists and loops”, with special guest Nick Lockwood
Swift by Sundell
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.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.