4 ms·
It's like the other day there was a post where someone wrote an entire blog post about how they changed a tight loop with a function call in Golang to pass a po
by krinchan 4y ago
It's like the other day there was a post where someone wrote an entire blog post about how they changed a tight loop with a function call in Golang to pass a pointer to a struct instead of by-value so they stopped allocating and copying on each call.
Like...duh?
I suppose that's why I find Golang less weird to work with than others in my cohort. I spent a semester in the depths of C and OpenGL so I'm intimately familiar with by-value vs by-ref.