DescriptionChange ListContainer::AppendByMoving to return a pointer to the new item
This patch changes the return value of ListContainer::AppendByMoving to
return a pointer to the moved item at the new location. This was found
to be a performacne win in https://codereview.chromium.org/1193433004
because accessing the last element is not free. A new test has been
added to prove correctness.
BUG=484943
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/3e92831524899eb6b6b3f7f61dd0f51dbd0ae7d6
Cr-Commit-Position: refs/heads/master@{#336647}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|