runtime: use tophash == emptyRest
to decrease search times in mapaccess1_faststr
and mapaccess2_faststr
#68912
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Performance
Milestone
Proposal Details
In function
mapaccess2_faststr
andmapaccess2_faststr
, I think we can add follow code indohash
block 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.
The text was updated successfully, but these errors were encountered: