I told you the reason already. slice of struct is in the stack frame. Am Freitag, 13. Oktober 2017 16:59:14 UTC+2 schrieb Gabriel Aszalos: > > > For some reason, it seems that allocating a slice of slices takes up quite > a bit of memory, while allocating the slice of structs takes up no memory? > Quite interesting. But still can't really make sense of it. >
-- 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. For more options, visit https://groups.google.com/d/optout.