DescriptionUse emplace_back in RTree::Build
By using emplace_back istead os push_back we don't have to copy the elements
into the vector.
| Test | Before (runs/s) | After (runs/s) |
| rtree_construct: 100= | 40609.00390625 | 45958.69140625 |
| rtree_construct: 1000= | 4720.29833984375 | 5390.62841796875 |
| rtree_construct: 10000= | 456.375244140625 | 516.6461791992188 |
| rtree_construct: 100000= | 45.47178268432617 | 51.81435012817383 |
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2871183002
Cr-Commit-Position: refs/heads/master@{#470909}
Committed: https://chromium.googlesource.com/chromium/src/+/3dc8481c601fd89ae33a6defededf5875f5ba65e
Patch Set 1 #
Messages
Total messages: 9 (6 generated)
|