Re: [go-nuts] How the bmap structure in runtime/map.go dynamically extended during compilation?

2022-03-25 Thread Maksadbek
Yes, this is exactly what I was searching for. Thank you! On Friday, 25 March 2022 at 21:51:27 UTC+3 Ian Lance Taylor wrote: > On Fri, Mar 25, 2022 at 11:42 AM Maksadbek wrote: > > > > I've been reading the map internals in Go and came across into following > s

[go-nuts] How the bmap structure in runtime/map.go dynamically extended during compilation?

2022-03-25 Thread Maksadbek
I've been reading the map internals in Go and came across into following structure in source code: https://github.com/golang/go/blob/master/src/runtime/map.go#L150 // A bucket for a Go map. type bmap struct { // tophash generally contains the top byte of the hash value // for each key in this buc