DescriptionAvoid unnecessary HashTable resizing during copy construction.
We do know the final table size, so reserve its size before starting
to copy over. Thereby avoiding intermediate table allocations.
R=esprehn
BUG=
Review-Url: https://codereview.chromium.org/2715473004
Cr-Commit-Position: refs/heads/master@{#452060}
Committed: https://chromium.googlesource.com/chromium/src/+/c1f114d257fb0edcf6cc54ab871cd48638d8601c
Patch Set 1 #
Messages
Total messages: 14 (9 generated)
|