Go Time: Golang, Software Engineering cover image

So do we like Generics or not?

Go Time: Golang, Software Engineering

00:00

The Conflict Between Generic Types and Performance Optimization in Go

Slices dot sort works for things like ints and strings that you can compare with less than. And then there's a variant which is called slices dot sort funk, where you supply a less function. I mean, it's not as much faster. But as you just said, it's calling through reference to a function, which is much faster than doing dynamic dispatch on the on the elements of the slice.

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