[go-nuts] Is GC affected by array size, and if so, when and how?

2018-05-01 Thread time4dan
I looked at the source but can't understand it well enough. If I allocate a [1000]byte, or a []byte, I understand the GC will need to mark the slice/array itself for collection. However, does the GC mark all the bytes within, and does the marking phase attempt to follow all the items? Will the

Re: [go-nuts] Is GC affected by array size, and if so, when and how?

2018-05-01 Thread time4dan
That is all as I anticipated, but I don't know where this is documented. Any chance you could point me in the right direction? Even in the source code, the closest I could come to an answer was something to do with type "spans", but I'm so unfamiliar with the terminology... -- You received thi