Proposal Details
In function mapaccess2_faststr and mapaccess2_faststr , I think we can add follow code in dohash block to decrease the search in bucket & over flow buckets.
if b.tophash[i] == emptyRest {
return unsafe.Pointer(&zeroVal[0])
}
Position:
|
k := (*stringStruct)(kptr) |
I am pleasure to change it if you think it is good.
Proposal Details
In function
mapaccess2_faststrandmapaccess2_faststr, I think we can add follow code indohashblock to decrease the search in bucket & over flow buckets.Position:
go/src/runtime/map_faststr_noswiss.go
Line 98 in 5276107
I am pleasure to change it if you think it is good.