News for hackers. Stuff that matters.
Re:Generics can make your Go code slower by lalaithion on Wednesday March 30, 2022 @12:55PM (#30857798)
Very few people are actually answering your question, so I'll answer it: Generics are slower than concrete types, and are slower than simple interfaces. However, the article does not bother to compare generics with reflection, and my intuition says that generics will be faster than reflection.

There are no comments on this comment yet.