Hacker News new | past | comments | ask | show | jobs | submit login

I'm making some assumptions about the compiler optimization: If T is something like "int", then passing by reference can be more costly, because a value that was once stored in a register now needs a real memory address and must be deferenced to read.



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

Search: