Re: [go-nuts] Does the time cost of the mark phase in gc is mainly depending on the amount of the living objects and has very little to do with the amount of unused objects?

2021-07-28 Thread rmfr
Thank you very much, Ian. You gave me a deeper understanding of Golang's internal :-D On Wednesday, July 28, 2021 at 6:23:02 AM UTC+8 Ian Lance Taylor wrote: > On Tue, Jul 27, 2021 at 4:56 AM rmfr wrote: > > > > Hi, I'm reading the GC implementation of Golang, and some questions have > come

Re: [go-nuts] Does the time cost of the mark phase in gc is mainly depending on the amount of the living objects and has very little to do with the amount of unused objects?

2021-07-27 Thread Ian Lance Taylor
On Tue, Jul 27, 2021 at 4:56 AM rmfr wrote: > > Hi, I'm reading the GC implementation of Golang, and some questions have come > to me. As the title described: > > Proposition 1: > The time cost of the mark phase in GC is mainly depending on the amount > of the living objects. > >

[go-nuts] Does the time cost of the mark phase in gc is mainly depending on the amount of the living objects and has very little to do with the amount of unused objects?

2021-07-27 Thread rmfr
Hi, I'm reading the GC implementation of Golang, and some questions have come to me. As the title described: Proposition 1: The time cost of the mark phase in GC is mainly depending on the amount of the living objects. Proposition 2: The time cost of the mark phase in GC has very