Hey, It seems that structs perform faster when aligned with cache line size, but how about when using global variables? Would it be more performant if I used a struct to hold multiple cache values instead of global variables?
To clarify, for example: var ( val0 int val1 int ... valn int ) func Calculate() { // using valx variables } vs. type someStruct struct { val0 int val1 int ... valn int } var globalStruct *someStruct = &someStruct{} func Calculate() { // using globalStruct } Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9d602931-a9c7-4c35-9c48-9ce8e46240f9n%40googlegroups.com.