Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don’t fully understand how generics are suppose to be made faster than a custom function for that datatype.

The point is that a monomorphized generic function should not be slower than the custom-function-per-datatype, but because Go's generics are not fully monomorphized they can be, and in fact can be slower than the a function-for-interface.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: