Description[interpreter] Use hashmap for ConstantArrayBuilder's constant map
Uses the base hashmap to store the ConstantArrayBuilder's constant map,
which slightly improves the performance of ConstantArrayBuilder::Insert.
Includes a small overload of the hashmap LookupOrInsert method, which
allows passing in a value creation function instead of just default
initialising new values.
On Octane's codeload, this gives (on my machine) a 0.27% improvement,
which doesn't sound like a lot but I guess every little helps.
Committed: https://crrev.com/0134ddae6b6ac73d04a65134de55e77f37374cdb
Cr-Commit-Position: refs/heads/master@{#39883}
Patch Set 1 #Patch Set 2 : Change file name to match class #Patch Set 3 : Rebased onto master #
Total comments: 5
Patch Set 4 : New version based on the modified base hashmap #Patch Set 5 : Rebase #Patch Set 6 : Rebase #
Messages
Total messages: 18 (7 generated)
|