generics can make your code slower
Wonderful article, with really nice interactive breakdowns of how golang calls functions at the ASM level: https://planetscale.com/blog/generics-can-make-your-go-code-slower
It looks quite familiar, but there’s a stark difference. Offset
0x0094contains what we don’t want a function call-site to contain: another pointer dereference. The technical term for this is, again, a total bummer.
monomorphization seem like a nice simple term!