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

You aren’t missing anything. How expensive the copy is depends on the type of item. This is why you should probably use pointers in slices you’re going to loop over instead of the object itself.



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

Search: