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.