Re:Generics can make your Go code slower
by morelisp on Wednesday March 30, 2022 @12:28PM
(#30857432)
If you're using reflection or storing a bare interface{}, you should probably instead try using generics.
If you're using real interfaces, you should keep using interfaces.
If you care about performance, you should not try to write Java-Streams / FP-like code in a language with no JIT and a non-generational non-compacting GC.
If you're using real interfaces, you should keep using interfaces.
If you care about performance, you should not try to write Java-Streams / FP-like code in a language with no JIT and a non-generational non-compacting GC.