Description[base] Optimise hashmaps with simple key equality
Hashmaps with a simple key equality method (comparing pointers) don't
need to waste cycles (and branches) comparing hash values, as the key
comparison is cheap.
This patch modifies the hashmap's MatchFun to take the hashes as well as
the keys, thus allowing the MatchFun to ignore the hashes. This allows
slightly cleaner generated code, especially when the MatchFun is
inlined.
BUG=
Committed: https://crrev.com/306f83119b404eecaf28697e81fa8360a5237e5f
Cr-Commit-Position: refs/heads/master@{#39932}
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase #
Total comments: 4
Patch Set 4 : Rename matcher structs to something more... verbose #Patch Set 5 : Whoops, patches should compile #
Messages
Total messages: 27 (19 generated)
|