You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I’m very new to Go and I have some questions regarding the array.
I've been testing arrays with pointer struct and struct arrays when queries from the database. But I do not find any performance difference. So I wonder, is the pointer array better or the struct array better?
I’ve been searching for information online, and this is what I found: https://medium.com/@philpearl/bad-go-slices-of-pointers-ed3c06b8bb41
but when it comes to complicated data processing with large arrays, what is the best practice?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I’m very new to Go and I have some questions regarding the array.
I've been testing arrays with pointer struct and struct arrays when queries from the database. But I do not find any performance difference. So I wonder, is the pointer array better or the struct array better?
I’ve been searching for information online, and this is what I found:
https://medium.com/@philpearl/bad-go-slices-of-pointers-ed3c06b8bb41
but when it comes to complicated data processing with large arrays, what is the best practice?
Beta Was this translation helpful? Give feedback.
All reactions