News for hackers. Stuff that matters.
Re:Generics can make your Go code slower by SomeCallMeTim on Wednesday March 30, 2022 @04:14PM (#30860231)
In my experience, code bloat from templates is overblown.

Inlining happens with or without template classes.

Re:Generics can make your Go code slower by gmfawcett on Wednesday March 30, 2022 @05:35PM (#30861080)
That's fair. I guess if you need the functionality in your program, you need the functionality: the codegen approach doesn't matter that much. And like pjmlp said, LTO can make a difference too. Thanks for your thoughts, these kinds of exchanges make me smarter. :)